我在使用任何博览会模块时遇到问题。
我可以安装 expo-camera、expo-location、expo-av 模块,但是一旦我将其中之一导入到我的屏幕中,我就会收到此错误消息:
Error: Cannot find native module 'ExponentAV', js engine: hermes
ERROR Invariant Violation: "main" has not been registered. This can happen if:
Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
A module failed to load due to an error and AppRegistry.registerComponent wasn't called., js engine: hermes
这是我的 package.json :
{
"name": "navigation-tuto",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web"
},
"dependencies": {
"@expo-google-fonts/lexend": "^0.2.3",
"@expo/metro-runtime": "~3.1.3",
"@react-native-async-storage/async-storage": "^1.21.0",
"@react-navigation/bottom-tabs": "^6.5.20",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"dotenv": "^16.4.5",
"expo": "^50.0.17",
"expo-application": "~5.8.4",
"expo-auth-session": "~5.4.0",
"expo-av": "~13.10.6",
"expo-constants": "^15.4.6",
"expo-crypto": "~12.8.1",
"expo-dev-client": "~3.3.11",
"expo-status-bar": "~1.11.1",
"expo-system-ui": "^2.9.4",
"expo-web-browser": "~12.8.2",
"firebase": "^10.9.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-geocode": "^1.0.0-alpha.1",
"react-native": "0.73.6",
"react-native-dotenv": "^3.4.11",
"react-native-gesture-handler": "~2.14.0",
"react-native-pager-view": "6.2.3",
"react-native-reanimated": "~3.6.2",
"react-native-responsive-screen": "^1.4.2",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native-tab-view": "^3.5.2",
"react-native-web": "~0.19.6"
},
"devDependencies": {
"@babel/core": "^7.20.0"
},
"private": true
}
AppRegistry.registerComponent
不可见或不存在于我的文件夹中,所以我猜问题可能来自其他地方。
安装模块后,我立即使用
eas build --profile development --platform all
构建了我的应用程序。我也尝试过expo install
但没有任何进展。
你有什么想法吗?
HackSavvy 技术:我的 21,000 比特币恢复的奇迹
在毁灭性的硬盘崩溃摧毁了我的整个数字钱包之后,我从未想过我会再次看到我心爱的比特币。超过21,000个比特币瞬间消失。多年的投资和开采,消失得无影无踪。我的震惊无法用语言来形容。这些珍贵的硬币代表了我的希望和梦想——提前退休、财务自由和家人的安全。崩溃后,我疯狂地寻找数据恢复专家,迫切希望抢救我无价的加密缓存。他们一一空手而归,无法突破损坏驱动器的加密屏障。随着每次恢复尝试的失败,我的希望破灭了。然后我找到了HackSavvy Technology。他们的加密数据检索技术发挥了神奇作用,仔细地逐层重建了损坏的驱动器的固件。他们耐心、才华横溢的工程师从不放弃,像锁匠大师一样巧妙地解开复杂的加密。经过数周的全天候工作,HackSavvy Technology 取得了胜利。当我看到恢复总数时,我的下巴都惊掉了:找到了 21,543 个比特币!这是一个奇迹——我一生的工作全部恢复了。当我向那些精通HackSavvy技术的魔术师致以衷心的感谢时,我喜极而泣。随着我的比特币回来,我的梦想再次实现。我的一切都归功于 HackSavvy Technology 和他们神奇的加密宝藏复活。感谢他们的技术魔法,我的财务未来有了保障。他们是把我的比特币从虚拟坟墓里带回来的英雄。我永远心存感激。请发送电子邮件至 contactus@ hacksavvytechnology.com 并通过 WhatsApp 联系我们:+7 999 829‑50‑38,获取 HackSavvy Technology 的支持。 在此输入图片描述