react Can’t find variable
2017-09-11 09:55
302 查看
当你遇到这样的问题时,是由于你没有import中添加TouchableHighlight
2
3
4
5
6
7
8
9
如果下次遇到Can’t find variable:的问题那就是没有导入的问题,以此类推。不在举例子了
=========
感谢曾给我帮助的所有人
import { AppRegistry, StyleSheet, Text, View, PixelRatio, Dimensions, TouchableHighlight, } from 'react-native';1
2
3
4
5
6
7
8
9
如果下次遇到Can’t find variable:的问题那就是没有导入的问题,以此类推。不在举例子了
=========
感谢曾给我帮助的所有人
相关文章推荐
- 关于react-native遇到Can't find variable: TouchableHighlight
- React-Native首次运行提示-ReferenceError-Can-t-find-variable-fbBatchedBridge
- react-native 解决 Can't find variable: __fbBatchedBridge
- react-native-image-picker在IOS上总是返回”Can’t find variable:response”的错误?
- Ionic 2, Using Angular 2 Pipe breaks on iOS—“Can't find variable: Intl”
- 解决ReactNative崩溃:Can't find variable: __fbBatchedBridge
- axios 在单元测试中遇到 can't find variable: promise 解决方法
- Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法
- can't find class: org.wltea.expression.datameta.Variable
- ReactNative报错:Can't find variable: __fbBatchedBridge
- 在android中调用网页中的js代码,ReferenceError: Can't find variable: $
- javascript--- Can't find variable: $
- 再一次掉进react native的坑了。ReferenceError can't find variable:location
- JSExecutionException: ReferenceError: Can't find variable: __fbBatchedBridge
- Can not find the tag library descriptor for "/struts-tags"问题
- phprpc Can't find the key for decryption 解决方案
- JSTL, Can not find library tag descriptor
- 服务器的日志一直报Packet for query is too large (7632997 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.的解决方法
- Kettle解析JSON错误,We MUST have the same number of values for all paths,We can not find and data with path [$.
- Can't get Gulp to run: cannot find module 'gulp-util'