menu

JS Everywhere

A community for the JavaScript Everywhere book by Adam Scott, published by O'Reilly.

Channels
Team

Expo App setup does not work out of the box

May 4, 2020 at 3:13pm

Expo App setup does not work out of the box

May 4, 2020 at 3:13pm
Hey all, :)
I started working on Chapter 21 (Mobile Apps with React Native) today and can't get the Expo App run as expected (neither on my physical iOS device nor on the Simulator). The app shows the error message "The experience you requested uses Expo SDK v(null), but this copy of Expo Client requires at least v34.0.0".
I assume this error is related to my node version (v14.1.0), which the expo-cli marks as not yet supported. Did anyone of you experience the same issue and if so, how did you solve it?

May 4, 2020 at 3:30pm
I found a solution, but I guess the question is still relevant for other people with the same issue!
In your app.json, you have to update sdkVersion: "33.0.0" to sdkVersion: "34.0.0" and restart expo with npm start. This fixed the problem for me.
Edited
  • reply
  • like
Thanks ! I'm glad to hear that you were able to work around this
  • reply
  • like
When time allows, I'll do some testing with Node 10-12 and the 34.0.0 SDK to see if I can make that bump part of the repo
  • reply
  • like

May 5, 2020 at 11:06am
Hey , I found another bug in Chapter 22: react-native-screens is missing in the default package.json, which the routing section relies on.
npm install react-native-screens
repairs this. :) Otherwise you can add "react-native-screens": "^2.7.0", to the dependencies.
Edited
like-fill
1
  • reply
  • like