我可以在我的博览会项目中运行react-native链接吗?

时间:2019-09-14 11:50:00

标签: javascript react-native react-native-android

我正在尝试在我的expo项目中使用react-native-image-crop-picker程序包,但出现此错误:

* src\screens\my-profile\MyProfile.js:91:32 in onPressImageIcon$
- node_modules\@babel\runtime\node_modules\regenerator-runtime\runtime.js:45:44 in tryCatch
- node_modules\@babel\runtime\node_modules\regenerator-runtime\runtime.js:271:30 in invoke
- node_modules\@babel\runtime\node_modules\regenerator-runtime\runtime.js:45:44 in tryCatch
- node_modules\@babel\runtime\node_modules\regenerator-runtime\runtime.js:135:28 in invoke
- node_modules\@babel\runtime\node_modules\regenerator-runtime\runtime.js:170:17 in <unknown>
- node_modules\promise\setimmediate\core.js:45:7 in tryCallTwo
- node_modules\promise\setimmediate\core.js:200:23 in doResolve
- node_modules\promise\setimmediate\core.js:66:12 in Promise
- node_modules\@babel\runtime\node_modules\regenerator-runtime\runtime.js:169:27 in callInvokeWithMethodAndArg
- node_modules\@babel\runtime\node_modules\regenerator-runtime\runtime.js:192:38 in enqueue
- node_modules\@babel\runtime\node_modules\regenerator-runtime\runtime.js:216:8 in async
* null:null in onPressImageIcon
* src\screens\my-profile\MyProfile.js:109:45 in onPress
- node_modules\react-native\Libraries\Components\Touchable\TouchableOpacity.js:235:45 in touchableHandlePress
- node_modules\react-native\Libraries\Components\Touchable\Touchable.js:878:34 in _performSideEffectsForTransition
- ... 21 more stack frames from framework internals 

请帮助我解决这个问题。甚至可以在博览会上链接吗?我正在Windows环境中,并且在运行Android 7.1.2的Redmi 4A上测试应用程序

谢谢。

1 个答案:

答案 0 :(得分:0)

您不能。关于Expo的最大限制是您不能添加自己的本机模块。 如果您想使用任何需要react-native链接的东西,那么您需要分离项目,然后在没有ExpoKit的情况下进行开发