“你的应用”尚未注册 - 世博会

时间:2021-01-07 23:13:32

标签: react-native expo

我的应用程序在博览会上运行没有错误。

但是当我尝试使用我的 xcode 处理它时,它返回如下错误。 当我发布应用程序时,它会在我点击时崩溃。

这是怎么回事?

我在谷歌上搜索,并尝试了我找到的所有内容。但没有什么能解决我的问题。 实际上,我什至无法理解问题所在。

这是我的 /index.js

/**
 * @format
 */

import { registerRootComponent } from 'expo'
import App from './src/App'

registerRootComponent(App)

我的 package.json

{
  "name": "app2021",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "@freakycoder/react-native-bounceable": "^0.2.4",
    "@paraboly/react-native-card": "github:Paraboly/react-native-card#expo",
    "@react-native-async-storage/async-storage": "^1.13.2",
    "@react-native-community/masked-view": "^0.1.10",
    "@react-native-picker/picker": "^1.9.8",
    "@react-navigation/bottom-tabs": "^5.11.1",
    "@react-navigation/drawer": "^5.11.4",
    "@react-navigation/native": "^5.8.9",
    "@react-navigation/stack": "^5.12.6",
    "@reduxjs/toolkit": "^1.4.0",
    "@thecodingmachine/redux-toolkit-wrapper": "^1.2.0",
    "axios": "^0.21.0",
    "expo": "^39.0.5",
    "expo-av": "~8.6.0",
    "expo-barcode-scanner": "~9.0.0",
    "expo-camera": "~9.0.0",
    "i18next": "^19.8.2",
    "react": "16.13.1",
    "react-i18next": "^11.7.3",
    "react-native": "0.63.3",
    "react-native-daterange-picker": "^1.4.0",
    "react-native-dynamic-vector-icons": "^1.1.4",
    "react-native-easy-toast": "^2.0.0",
    "react-native-flipper": "^0.64.0",
    "react-native-floating-label-input": "^1.2.16",
    "react-native-gesture-handler": "~1.7.0",
    "react-native-masked-text": "^1.13.0",
    "react-native-modal": "^11.6.1",
    "react-native-picker-select": "^8.0.4",
    "react-native-reanimated": "~1.13.0",
    "react-native-safe-area-context": "3.1.4",
    "react-native-screens": "^2.14.0",
    "react-native-svg": "12.1.0",
    "react-native-swipe-gestures": "^1.0.5",
    "react-native-swipe-list-view": "^3.2.5",
    "react-native-tab-view": "^2.15.2",
    "react-native-unimodules": "^0.12.0",
    "react-native-vector-icons": "^7.1.0",
    "react-redux": "^7.2.1",
    "redux": "^4.0.5",
    "redux-flipper": "^1.4.2",
    "redux-persist": "^6.0.0",
    "victory": "^35.4.3",
    "victory-native": "^35.3.1",
    "expo-permissions": "~9.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.11.6",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "babel-plugin-module-resolver": "^4.0.0",
    "eslint": "^7.13.0",
    "eslint-import-resolver-babel-module": "^5.1.2",
    "eslint-plugin-import": "^2.22.0",
    "identity-obj-proxy": "^3.0.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.64.0",
    "react-test-renderer": "17.0.1",
    "reactotron-react-native": "^5.0.0"
  },
  "jest": {
    "preset": "react-native",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ],
    "moduleNameMapper": {
      ".+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "identity-obj-proxy"
    },
    "setupFiles": [
      "./jest.setup.js"
    ],
    "timers": "fake",
    "testEnvironment": "jsdom"
  }
}

分享错误如下: 尚未注册。在以下情况下可能会发生这种情况:

* 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

0 个答案:

没有答案