[英]Can I run react-native link in my expo project?
I'm trying to use react-native-image-crop-picker
package in my expo project but I'm getting this error:我正在尝试在我的博览会项目中使用
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
Please help me to figure this out.请帮我解决这个问题。 Is it even allowed to link in expo??
甚至允许在世博会上链接吗?? I'm on a Windows environment and testing app on Redmi 4A which is running on Android 7.1.2
我在 Windows 环境中并在运行 Android 7.1.2 的 Redmi 4A 上测试应用程序
Thanks.谢谢。
You can't.The most limiting thing about Expo is that you can't add in your own native modules.你不能。Expo 最大的限制是你不能添加自己的原生模块。 if you want to use anything that requires react-native link, then you need to detach your project and then develop it without ExpoKit
如果你想使用任何需要 react-native 链接的东西,那么你需要分离你的项目,然后在没有 ExpoKit 的情况下开发它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.