在我的设备中下载Java脚本后,此错误显示在ios屏幕上。
ReferenceError: Can't find variable: Text
This error is located at:
in App (at registerRootComponent.js:35)
in RootErrorBoundary (at registerRootComponent.js:34)
in ExpoRootComponent (at renderApplication.js:33)
in RCTView (at View.js:60)
in View (at AppContainer.js:102)
in RCTView (at View.js:60)
in View (at AppContainer.js:122)
in AppContainer (at renderApplication.js:32)
答案 0 :(得分:0)
从本地本机导入文本。
$Hashtable[$Features][$Actions]
答案 1 :(得分:0)
在这里导入react-native
是不够的。
未找到模块:无法解析“ react-native”
相反,您需要一个附加软件包:
yarn add react-native-web
现在您可以使用
import {Text} from 'react-native'