square / in-app-payments-react-native-plugin

Apache License 2.0
116 stars 49 forks source link

Issue running the quickstart app #238

Open AkbarBakhshi opened 1 month ago

AkbarBakhshi commented 1 month ago

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 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:

Screenshot 2024-05-29 at 8 40 42 PM

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.