Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't upgrade the react-native project #19556

Closed
kk412027247 opened this issue Jun 4, 2018 · 1 comment
Closed

Can't upgrade the react-native project #19556

kk412027247 opened this issue Jun 4, 2018 · 1 comment
Labels
Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Resolution: Locked This issue was locked by the bot.

Comments

@kk412027247
Copy link

kk412027247 commented Jun 4, 2018

Environment

OS: macOS High Sierra 10.13.4
Node: 8.9.3
Yarn: 1.6.0
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3.1 Build version 9E501
Android Studio: 3.1 AI-173.4720617

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: ^0.55.4 => 0.55.4

Description

simulator screen shot - iphone x - 2018-06-04 at 16 59 54

I got an old react-native project some day before, the project dosen't adapt the iPhone X

I install a lastest version of react-native in order to fix this, but nothing change.

yarn add  react-native
"dependencies": {
  "react": "16.2.0",
  "react-native": "^0.55.4",
}

Then i have found the manual Upgrading to new React Native versions.

I run the command 'react-native-git-upgrade', it doesn't work either.
bash

simulator screen shot - iphone x - 2018-06-04 at 18 02 08

I run the command 'react-native upgrade', I got a err finally.

error: bundling failed: NotFoundError: Cannot find entry file index.js in any of the roots:

wx20180604-182020 2x

I create a index.js still can't fix this.

Dependencies

 "dependencies": {
    "@remobile/react-native-qrcode-local-image": "^1.0.4",
    "animated": "^0.2.1",
    "es6-promise": "^4.2.2",
    "hoek": "^5.0.3",
    "humps": "^2.0.1",
    "isomorphic-fetch": "^2.2.1",
    "lodash": "^4.17.5",
    "normalizr": "^3.2.4",
    "offline-plugin": "^4.6.1",
    "path-to-regexp": "^2.1.0",
    "prop-types": "^15.6.1",
    "qrcode-react": "^0.1.16",
    "react": "16.2.0",
    "react-dom": "^16.2.0",
    "react-motion": "^0.5.2",
    "react-native": "^0.55.4",
    "react-native-easy-toast": "^1.1.0",
    "react-native-elements": "1.0.0-beta",
    "react-native-exit-app": "^1.0.0",
    "react-native-fetch-blob": "^0.10.8",
    "react-native-fs": "^2.9.11",
    "react-native-i18n": "^2.0.10",
    "react-native-image-picker": "^0.26.7",
    "react-native-modal": "^4.1.1",
    "react-native-parallax-scroll-view": "^0.20.1",
    "react-native-qrcode-svg": "^5.0.6",
    "react-native-share": "1.0.23",
    "react-native-smart-barcode": "^1.0.6",
    "react-native-smart-timer-enhance": "^1.0.3",
    "react-native-splash-screen": "^3.0.6",
    "react-native-stream": "^0.1.9",
    "react-native-svg": "^6.3.1",
    "react-native-vector-icons": "^4.6.0",
    "react-native-view-shot": "^2.3.0",
    "react-native-web": "^0.1.14",
    "react-navigation": "git+https://github.com/react-community/react-navigation.git#d5618ebd41ec1ac53cb40301d0f71610fbbb7172",
    "react-redux": "^5.0.6",
    "react-swipeable-views": "^0.12.12",
    "react-swipeable-views-native": "^0.12.9",
    "redux": "^3.7.2",
    "redux-logger": "^3.0.6",
    "redux-persist": "^5.4.0",
    "redux-saga": "^0.16.0",
    "redux-thunk": "^2.2.0",
    "styled-components": "^2.4.0"
  },
@hramos hramos added the Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. label Jun 4, 2018
@hramos
Copy link
Contributor

hramos commented Jun 4, 2018

Upgrade issues are probably not a good fit for the repo, as they typically occur on particular projects and are hard to reproduce by any other contributor. If this is an issue that can be reliably reproduced on a minimal sample project, please do submit a new issue.

@hramos hramos closed this as completed Jun 4, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Jun 4, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: For Stack Overflow A question for Stack Overflow. Applying this label will cause issue to be closed. Resolution: Locked This issue was locked by the bot.
3 participants