cawfree / create-react-native-dapp

Your next Ethereum application starts here. ⚛️ 💪 🦄
https://twitter.com/cawfree
MIT License
430 stars 62 forks source link

Wrong react native version #24

Open francesco-clementi-92 opened 3 years ago

francesco-clementi-92 commented 3 years ago
blixit commented 3 years ago

I had the same issue yesterday !

you need to update the package.json with right version and run "expo install" to apply the changes.

cawfree commented 3 years ago

@blixit Thanks for suggesting the fix; can you submit a PR or show your changes so I can deploy a fix here? 🙏

blixit commented 3 years ago

I can do that this weekend

blixit commented 3 years ago

After investigation, the bad version comes from the execution of npx create-react-native-app ${name} -t with-typescript in the createBaseProject() function from src/buidler/index.ts.

The template with-typescript is defined here https://github.com/expo/examples/tree/master/with-typescript. You can see that it contains the version 0.64.2.

16 days ago, a pull request has been merged to upgrade the package to make it compatible with Expo SDK 43: https://github.com/expo/examples/pull/339 but the react-native version changed from this moment. Expo has already made the change here 11 days ago.

We have 2 ways to fix our issue:

blixit commented 3 years ago

I submitted the PR: https://github.com/expo/examples/pull/342

blixit commented 3 years ago

@francesco-clementi-92 @cawfree my PR has been merged. There is no need to update the current package.