简体   繁体   English

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

[英]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.

相关问题 反应原生无法打开世博项目 - react-native can't open expo project 如何使用NODE_ENV ==&#39;production&#39;让XCode运行我的react-native项目 - How do I get XCode to run my react-native project with NODE_ENV == 'production' 为什么我不能运行我的React Native项目? - Why can't I run my React Native project? 如果我不是Sudo,React-Native无法运行项目 - React-Native cannot run project if I am not Sudo 如何在 react-native expo 中深度链接到特定屏幕 - How to deep link to specific screen in react-native expo 使用 react-native、Firebase 和 expo 的 signinwithemail 链接错误 - signinwithemail link error using react-native, Firebase and expo 有没有办法在博览会上使用“npx react-native link”? - Is there a way to use "npx react-native link" with expo? 如何在 React Native Expo 项目中的屏幕之间导航? - How can I navigate between screens in a React Native Expo project? npx react-native 链接命令在最新版本的 react native 中不起作用。 我们如何在我的项目中链接自定义字体系列 - npx react-native link command not working in latest version of react native. How can we link custom font family in my project 如何在 React-Native 中按顺序运行我的异步函数? - How can I run my asyncronous functions in order in React-Native?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM