RN:什么时候升级到AndroidX?

时间:2019-06-22 22:20:59

标签: react-native react-native-android

我的RN应用运行在0.59,并且即将推出0.60。根据该文档,RN 0.60正式支持AndroidX。这是关于AndroidX的{​​0.RC2的changlog

AndroidX support (this will be a Breaking Change!) (if you are a library maintainer, please have a look at this issue on how to proceed for AndroidX support)

我当前的RN 0.59应用有与Androix相关的构建问题。提供的解决方案之一是升级到Androidx。但是我可以为我的0.59应用程序升级到AndroidX吗?单个模块可能需要一些时间才能支持androidx。这是我的package.json文件:

{
  "name": "emps_app",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "moment": "^2.24.0",
    "react": "16.8.3",
    "react-native": "0.59.5",
    "react-native-cli": "^2.0.1",
    "react-native-confirmation-code-field": "^3.5.2",
    "react-native-device-info": "^1.5.1",
    "react-native-elements": "^1.1.0",
    "react-native-gesture-handler": "^1.2.0",
    "react-native-gifted-chat": "^0.7.3",
    "react-native-keychain": "^3.1.1",
    "react-native-linear-gradient": "^2.5.4",
    "react-native-modal": "^11.0.0",
    "react-native-modal-datetime-picker": "^7.4.0",
    "react-native-paper": "^2.15.2",
    "react-native-segmented-control-tab": "^3.4.0",
    "react-native-vector-icons": "^6.4.2",
    "react-navigation": "^3.9.1",
    "socket.io-client": "2.1.1"
  },
  "devDependencies": {
    "@babel/core": "^7.4.4",
    "@babel/runtime": "^7.4.4",
    "babel-jest": "^24.7.1",
    "jest": "^24.7.1",
    "metro-react-native-babel-preset": "^0.53.1",
    "react-test-renderer": "16.8.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

0 个答案:

没有答案