RN 0.70.0 ViewPropTypes & AppRegistry issue
See original GitHub issueDescription
I upgraded my react-native project from ~0.67.1
to 0.70.0
, I followed all the guidance here: https://react-native-community.github.io/upgrade-helper/?from=0.67.1&to=0.70.0.
After the upgrade process, error start showing up saying some errors below:
Version
0.70.0
Output of npx react-native info
System: OS: macOS 12.2.1 CPU: (8) arm64 Apple M1 Memory: 1.15 GB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: 11.0.14.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.0 => 0.70.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Steps to reproduce
- Upgrade react native version to
0.70.0
- Removed node_modules directory and
Pods
directory to get clean package installation - Execute
yarn install
andpod install
- Run the metro by using
yarn run start
- Run ios by
yarn ios
The build works perfectly fine, but then when the emulator shows up, it stuck on the Splash Screen and console log shows the error like the attached file above.
Snack, code example, screenshot, or link to a repository
Already provided above.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:13 (1 by maintainers)
Top GitHub Comments
@hicath Try this:
Good news, it finally works for me. I implemented the patch and upgraded some used dependencies that has some updates related to latest RN adjustments