如何将使用Create-React-App创建的项目编译为本地移动应用程序?

时间:2019-11-03 17:37:16

标签: reactjs react-native expo

我最近继承了一个似乎是用create-react-app创建的项目(至少客户端文件夹中的自述文件似乎是create-react-app的样板)。但是,该项目还有一个正在运行且处于活动状态的本机移动应用程序,我似乎一辈子都无法弄清楚他们是如何实现它的。所有者认为这是通过Expo和React Native完成的,但是在package.json中没有提到这些库中的任何一个。我的问题是几年前如何构建React Native应用程序?不一样吗有没有什么方法可以在不使用react-native的情况下将React Webapp编译成本地移动应用程序?这东西怎么可以编译?

如果有帮助,我在下面添加了package.json

{
  "name": "my_project_react",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "axios": "^0.18.0",
    "classnames": "^2.2.6",
    "csvtojson": "^2.0.8",
    "date-fns": "^1.29.0",
    "font-awesome": "^4.7.0",
    "linkifyjs": "^2.1.7",
    "moment": "^2.22.2",
    "node-sass": "^4.11.0",
    "ramda": "^0.26.1",
    "re-reselect": "^3.0.0",
    "react": "^16.8.1",
    "react-autocomplete": "^1.8.1",
    "react-beautiful-dnd": "^10.0.2",
    "react-big-calendar": "https://github.com/MyProject/react-big-calendar.git#0.21.1",
    "react-datepicker": "^2.0.0",
    "react-datetime": "^2.16.2",
    "react-dom": "^16.8.1",
    "react-dropzone": "^7.0.1",
    "react-html-table-to-excel": "^2.0.0",
    "react-images": "^0.5.19",
    "react-infinite-scroller": "^1.2.2",
    "react-modal": "^3.6.1",
    "react-new-window": "^0.0.12",
    "react-redux": "^6.0.0",
    "react-router-dom": "^5.0.0",
    "react-scripts": "2.1.8",
    "react-table": "^6.8.6",
    "redux": "^4.0.1",
    "redux-devise-axios": "^0.0.4",
    "redux-thunk": "^2.3.0",
    "reselect": "^4.0.0",
    "twitter-text": "^3.0.0",
    "validator": "^10.8.0"
  },
  "devDependencies": {
    "eslint-config-standard": "^12.0.0",
    "eslint-plugin-import": "^2.16.0",
    "eslint-plugin-node": "^8.0.1",
    "eslint-plugin-promise": "^4.0.1",
    "eslint-plugin-react": "^7.12.4",
    "eslint-plugin-standard": "^4.0.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "proxy": "http://localhost:3001",
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "standard": {
    "parser": "babel-eslint"
  }
}

0 个答案:

没有答案