-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transition failed ,函数式组件在1.0.1版本下直接导出报错 #6
Comments
SafeAreaView 的确没有对齐。加入排期了,(我也是才发现的这个组件)。 HOC的支持存在一些限制,具体可以看这里。我们还在思考移除这些限制的方式。 第3个问题的话, 贴一下你的代码。 我看下呢 @MaybeSomeone |
import React from 'react'; const propTypes = { const DynamicLogViewer = (recieveObjec) => {
); DynamicLogViewer.propTypes = propTypes; |
@MaybeSomeone 这是我们在处理函数式组件的一个bug。 暂时你可以按照下面的修改一下: const propTypes = {
item: PropTypes.object.isRequired
};
export default function DynamicLogViewer(recieveObjec) {
const { props = {} } = recieveObjec;
// other code ...
}
DynamicLogViewer.propTypes = propTypes; |
好的 谢谢 |
@MaybeSomeone 转换的bug已经修复了,不过函数式组件需要在定义的时候导出,详见 |
组件SafeAreaView 没有在react-native指定
HOC 组件看起来是无法在小程序中使用
TypeError: func.body.body is not iterable
这个有点让人摸不着头脑
TypeError: Cannot read property '0' of null
The text was updated successfully, but these errors were encountered: