react-native-ai icon indicating copy to clipboard operation
react-native-ai copied to clipboard

upgrade to expo 51, add web support

Open benschac opened this issue 1 year ago • 0 comments

fixes: #6 and bumps expo to sdk 51.

Repro

  • follow docs: https://docs.expo.dev/workflow/upgrading-expo-sdk-walkthrough/ for updating expo sdk.
  • when initially trying to run web, console warning comes up with deps needed to run on web:
Please install react-native-web@~0.19.10, [email protected], @expo/metro-runtime@~3.2.3
by running:

npx expo install react-native-web react-dom @expo/metro-runtime

run npx expo install react-native-web react-dom @expo/metro-runtime

  • import logbox directly from react native, previous import was breaking web.
  • ran install with both yarn and npm since the template comes with both a yarn.lock & npm-lock files

screen shots

image

side note

  • thanks for all the great content you put out. It saves me so much time and I'm always learning something new.

benschac avatar Aug 26 '24 17:08 benschac