Likely causes and solutions for common problems.
When you run the quick start example, the app launched and started loading javascript from bundling server.
This bundling error "tries to require react-native
, but there are several files providing this module." is thrown.
The quick start example links to the local in-app payments plugin, if the local plugin has a node_modules
folder nested,
package resolver will look into it and cause this ambiguous resolution error.
-
Remove the nested
node_modules
cd /PATH/TO/LOCAL/react-native-in-app-payments-quickstart rm -rf node_modules/react-native-square-in-app-payments/node_modules/
-
Restart the bundling server and run the app again.
You open your app and launch the card entry UI, then you reload the app by "cmd+R" (iOS) or "R+R" (Android), clicking "cancel" doesn't close the card entry.
The hot reload doesn't work well with card entry UI.
You have to kill the app and launch the app again. To prevent this from happening, please always close the card entry UI before reloading.
Your iOS configuration files are missing or not correctly configured.
There is a stackoverflow question that adresses this problem.