I am trying to run the quickstart app on Android (haven't tested iOS) following the instructions here.
Basically, I cloned the project, then I navigated into the quickstart folder and ran yarn in the terminal and thenreact-native run-android. With that, I get some errors similar to what is discussed here (it appears that incompatible or old versions of react and react-native may have caused that error). Anyways, I was able to resolve the issue by following these steps in the quickstart folder:
1) Deleted the existing package-lock.json
2) Deleted node_modules folder (from running previous yarn command)
3) Bumped react to 18.2.0 and react native to 0.69.3
4) Ran yarn again
With this structure, I was able to build the android app and run it on the emulator. So, it seems like those dependency versions need to be updated in the repo. Could anyone test and see if they are having the same issue as I am?
My main problem though at this point is that I have to upgrade to react native 0.73.6. When I do that, I am getting some other errors after I run react-native run-android:
Again, all I did was bumping react-native to 0.73.6 (also, from previous step, bumped react to 18.2.0), and then I am getting the error in the screenshot above. All other files are same as what's on the repo. Anyone has any ideas why this is happening and how to resolve? Thank you.
Describe the issue
I am trying to run the quickstart app on Android (haven't tested iOS) following the instructions here.
Basically, I cloned the project, then I navigated into the quickstart folder and ran
yarn
in the terminal and thenreact-native run-android
. With that, I get some errors similar to what is discussed here (it appears that incompatible or old versions of react and react-native may have caused that error). Anyways, I was able to resolve the issue by following these steps in thequickstart
folder:1) Deleted the existing
package-lock.json
2) Deletednode_modules
folder (from running previousyarn
command) 3) Bumped react to18.2.0
and react native to0.69.3
4) Ranyarn
againWith this structure, I was able to build the android app and run it on the emulator. So, it seems like those dependency versions need to be updated in the repo. Could anyone test and see if they are having the same issue as I am?
My main problem though at this point is that I have to upgrade to react native
0.73.6
. When I do that, I am getting some other errors after I runreact-native run-android
:Again, all I did was bumping react-native to
0.73.6
(also, from previous step, bumped react to18.2.0
), and then I am getting the error in the screenshot above. All other files are same as what's on the repo. Anyone has any ideas why this is happening and how to resolve? Thank you.