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"
rm -rf node_modules and npm install again
update expo app on mobile phone
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!
To upgrade your expo version:
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"
rm -rf node_modules and npm install again
update expo app on mobile phone
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!