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

Fix codegen resolution error when node_modules has different version #29

Merged
merged 2 commits into from
Jan 20, 2022

Conversation

Kudo
Copy link

@Kudo Kudo commented Jan 17, 2022

Why

fix android client build error for expo/expo#15914 when different react-native version between node_modules/react-native and react-native-lab/react-native.

How

use the react-native-codegen from the same repository.

@Kudo Kudo marked this pull request as ready for review January 18, 2022 12:58
@Kudo Kudo mentioned this pull request Jan 18, 2022
3 tasks
@Kudo Kudo requested a review from brentvatne January 18, 2022 13:00
Copy link

@bbarthec bbarthec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Kudo Kudo merged commit b8c29af into exp-latest Jan 20, 2022
@Kudo Kudo deleted the @kudo/rn66 branch January 20, 2022 04:54
Kudo added a commit to expo/expo that referenced this pull request Jan 20, 2022
# Why

follow up #15817 (comment)
after we use the react-native from npm, the react-native version we used in expo-go is decoupled with other stuffs. that makes us upgrade react-native easier.

# How

1. update versions in package.json
2. sync changes from [react-native-upgrade-helper](https://react-native-community.github.io/upgrade-helper/?from=0.64.2&to=0.66.4)
3. `RCTComponentData` changed its designated initializer in react-native 0.65. to make it compatible with older version, i introduced the `EXComponentDataCompatibleWrapper` class to support different versions.
4. [react-native-lab] to fix expo-go build error, we should patch react-native to use the codegen library from its repo but not from node_modules:  expo/react-native#29.

# Test Plan

- CI passed
- bare-expo build & launch test
- unversioned expo-go build & launch test
prakashbask pushed a commit to prakashbask/expo that referenced this pull request Mar 16, 2022
# Why

follow up expo#15817 (comment)
after we use the react-native from npm, the react-native version we used in expo-go is decoupled with other stuffs. that makes us upgrade react-native easier.

# How

1. update versions in package.json
2. sync changes from [react-native-upgrade-helper](https://react-native-community.github.io/upgrade-helper/?from=0.64.2&to=0.66.4)
3. `RCTComponentData` changed its designated initializer in react-native 0.65. to make it compatible with older version, i introduced the `EXComponentDataCompatibleWrapper` class to support different versions.
4. [react-native-lab] to fix expo-go build error, we should patch react-native to use the codegen library from its repo but not from node_modules:  expo/react-native#29.

# Test Plan

- CI passed
- bare-expo build & launch test
- unversioned expo-go build & launch test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants