react-native
taotao_work
这个作者很懒,什么都没留下…
展开
-
react-native 通信传值的三种方法
1.组件嵌套传值通过状态机 state 进行传值TextInput onChangeText={(phone) => this._changePhone(phone)} placeholder='请输入手机号' style={[styles.textInput , {marginBottom:20}]} autoCorr原创 2016-10-29 15:59:54 · 3903 阅读 · 0 评论 -
RawText "/*" must be wrapped in an explicit <Text> component
提示的错误信息是:文本“/*” 必须写在内然后我的代码块是:发现只有注释那块用到有“/*”字样,所以原因是react-native 的注释方法和之前用到的不一样原创 2016-10-23 10:41:00 · 3934 阅读 · 0 评论