Cornell-Engineering-World-Health / ReX

GNU General Public License v3.0
1 stars 4 forks source link

Upgrade Expo to version 31.0.1 #82

Closed splashofcrimson closed 5 years ago

splashofcrimson commented 5 years ago

To upgrade your expo version:

  1. Make sure package.json and app.json are updated like this: app.json: "sdkVersion": "31.0.0" package.json: "jest-expo": "^31.0.0" "expo": "^31.0.4" "react": "16.5.0" "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.1.tar.gz" "@babel/plugin-transform-react-jsx-source": "^7.2.0" "@expo/vector-icons": "^9.0.0" "@fortawesome/fontawesome": "^1.1.3" "babel-plugin-transform-react-jsx-source": "^6.22.0" "babel-preset-expo": "^5.0.0"

  2. rm -rf node_modules and npm install again

  3. update expo app on mobile phone

  4. If you use expo start, switch to expo start -c instead

If you get this error: Couldn't find preset "babel-preset-expo" Run: npm install babel-preset-expo --save

If you get this error: Unknown plugin babel-plugin-transform-react-jsx-source Run: npm install babel-plugin-transform-react-jsx-source --save Open the .babelrc file and edit so it looks exactly like this: { "presets": ["babel-preset-expo"] }

Should work, lemme know if something's still broken!