首页 > 解决方案 > 无法在另一个系统上运行 Existing expo 项目,

问题描述

我无法使用 expo start 启动 expo 项目。Bundler 正在运行,但是当我在 expo 客户端中扫描 QR 码时没有任何反应。

弹出项目并使用 android studio 运行后也无法正常工作。任何人都知道如何解决这个问题。提前致谢。

更多细节

{
  "name": "my-new-project",
  "main": "node_modules/expo/AppEntry.js",
  "private": true,
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject",
    "test": "node ./node_modules/jest/bin/jest.js --watchAll"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/samples": "2.1.1",
    "@mapbox/react-native-mapbox-gl": "^6.1.3",
    "expo": "35.0.0",
    "expokit": "^32.0.6",
    "geofire": "^5.0.1",
    "mobx": "^5.9.0",
    "mobx-persist": "^0.4.1",
    "mobx-react": "^5.4.3",
    "prop-types": "^15.6.2",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz",
    "react-native-animatable": "^1.3.1",
    "react-native-check-box": "^2.1.7",
    "react-native-firebase": "^5.2.2",
    "react-native-interactable": "^0.1.10",
    "react-navigation": "^2.18.2"
  },
  "devDependencies": {
    "babel-preset-expo": "^5.0.0",
    "jest-expo": "^32.0.0"
  }
}


Run expo start
Expo DevTools is running at http://localhost:19009
Starting Metro Bundler on port 19011.
Successfully ran `adb reverse`. Localhost URLs should work on the connected Android device.
Your native app is running at exp2d1437b4f54d456bb554e0d5e90ab6d7://XX.XX.XX.XX:19010
Logs for your project will appear below. Press Ctrl+C to exit.

这是我在终端中得到的,但应用程序没有在设备的任何地方运行。

标签: javascriptreactjsreact-nativeexpo

解决方案


推荐阅读