nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 180 forks source link

Expo Go doesn't work with --router template #384

Closed algoflows closed 1 year ago

algoflows commented 1 year ago

Tried everything, can't get native up and running and working on my phone using expo go app by scanning the QR code, the app just crashes. I've tried literally everything and it's not working...

Run out of ideas.

nandorojo commented 1 year ago

you need to use an expo dev client, as mentioned in the release notes. expo go won’t work with reanimated 3. or you can downgrade reanimated, but it won’t work as well on web

algoflows commented 1 year ago

Okay thanks @nandorojo, what is the dev-client exactly? I see it as an argument to the npm run dev command, but not sure what a dev client is?

nandorojo commented 1 year ago

please look into expo dev clients on their website

algoflows commented 1 year ago

I have already and it didn't say much at all, does it mean emulators or physical devices?

nandorojo commented 1 year ago

it means creating a custom Expo Go with the native code from your project

Randall71 commented 1 year ago

I have already and it didn't say much at all, does it mean emulators or physical devices?

look at this link https://docs.expo.dev/develop/development-builds/introduction/

rpostulart commented 1 year ago

That does mean that you need a build each time to view what you have developed. This is not improving developer velocity. I am curious how you are doing that @nandorojo now? Are you focusing on web and when it's working making a native build once in a wile?

nandorojo commented 1 year ago

not sure what you mean. you only need to rebuild the dev client when native code changes. otherwise, you can just do over the air updates and use the local dev client with JS.

please get familiar with how this works from the expo side. they aren't very good at documenting it but it's out there

nandorojo commented 1 year ago

To build dev client locally:

npx expo run:ios -d

But I suggest using eas build to avoid XCode and such.

you also need to install expo-dev-client btw

rpostulart commented 1 year ago

Yeah for sure, but what I mean is normally when you change react native code in the IDE it does a fast/hot refresh and I immediately see the results in expo

nandorojo commented 1 year ago

and what’s different here?

rpostulart commented 1 year ago

you need to run eas update each time to see the changes on the device, or am I wrong?

nandorojo commented 1 year ago

that’s incorrect.

you only need to rebuild the dev client when native code changes. otherwise, you can just do over the air updates and use the local dev client with JS. please get familiar with how this works from the expo side. they aren't very good at documenting it but it's out there

rpostulart commented 1 year ago

sorry you are totally right changes are seen via the local server.