是否可以使用react-native-mapbox-gl创建生成版本?

时间:2018-04-26 14:13:29

标签: android ios react-native mapbox mapbox-gl

我有一个基于位置的应用程序,使用react-native和react-native-mapbox-gl包(用于React Native的MapBox Maps SDK)构建。该应用分别在Android和IOS设备上运行,分别使用react-native run-androidreact-native run-ios命令。

当我构建生产版本时,.ipa和.apk文件已成功创建,但无法在设备上安装 (没有任何特定的错误消息)。

使用react-native-mapbox-gl构建生产版本需要做一些额外的工作吗?

这是我的package.json



{
  "name": "MyAppName",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@mapbox/react-native-mapbox-gl": "^6.1.1",
    "babel-eslint": "^6.1.2",
    "eslint": "^3.7.1",
    "eslint-config-airbnb": "^12.0.0",
    "eslint-plugin-import": "^1.16.0",
    "eslint-plugin-jsx-a11y": "^2.2.2",
    "eslint-plugin-react": "^6.3.0",
    "geolib": "^2.0.24",
    "mobx": "^3.1.9",
    "mobx-react": "^4.1.8",
    "prop-types": "^15.6.1",
    "react": "16.3.1",
    "react-native": "^0.54.4",
    "react-native-animatable": "^1.2.4",
    "react-native-keyboard-aware-scroll-view": "^0.4.4",
    "react-native-modal": "^5.0.0",
    "react-native-simple-toast": "0.0.8",
    "react-navigation": "^1.5.2",
    "tcomb-form-native": "^0.6.11"
  },
  "devDependencies": {
    "babel-jest": "22.2.0",
    "babel-plugin-transform-decorators-legacy": "^1.3.4",
    "babel-preset-react-native": "4.0.0",
    "jest": "22.2.0",
    "react-test-renderer": "16.2.0"
  },
  "jest": {
    "preset": "react-native"
  },
  "rnpm": {
    "assets": [
      "./src/assets/fonts/"
    ]
  }
}




0 个答案:

没有答案