Skip to content

Conversation

@friederbluemle
Copy link

This updates react-native to 0.60.5 including all project support files.

Noteworthy are:

Autolinking: It is no longer necessary to manually modify Android or iOS project files in order to include the library as a dependency. iOS now uses CocoaPods (one manual pod install step in the ios folder is required for iOS).
With this new React Native version and the updated haste module, the modification to metro.config.js no longer works. It can now remain in its unmodified form from the template. Instead, a new script scripts/examples_postinstall.js is called in the postinstall hook of package.json to resolve the haste duplicate dependency problems. This script was copied from https://github.com/brodybits/create-react-native-module.

For more information see the official announcement for React Native 0.60: https://facebook.github.io/react-native/blog/2019/07/03/version-60

Successfully verified and tested on:

  • Android Device (Xiaomi Mi A2)
  • Android Emulator (Pixel 3a)
  • iOS Device (iPhone 8)
  • iOS Simulator (iPhone X)

This was done both on command line (react-native run-android/react-native run-ios, as well as from Android Studio and Xcode.

Closes #1
Closes #2
Closes #3
Closes #4
Closes #5

@friederbluemle friederbluemle force-pushed the update-react-native branch 3 times, most recently from 3971879 to 0f668f3 Compare September 10, 2019 00:28
@jorgemasta
Copy link

@friederbluemle How do you solved this problem?

The naive and common approach will be to use: yarn add file:../ to add your library to your example app, and that would probably work great! But, you would have to reinstall your package on every lib change, if you don’t forget it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants