morfsys / react-native-paypal

A react native wrapper to accept payments from paypal.
9 stars 7 forks source link

try code on apk: Error loading page #1

Open techday84 opened 4 years ago

techday84 commented 4 years ago

Hi! I try this code in my app. I generate an apk and when I go to paypal button the app shows me this:

Error loading page

Domain: undefined

Error Code: -6

Description: net::ERR_CONNECTION_REFUSED

If i go to the pc and try the url http://localhost:3000 it works, but when i try the app with the apk in my phone it doesn’t works.

Should I make shome change in the code when I publish the app on the stor

ReactNativeSandeep commented 4 years ago

@techday84 No Changes Required. Only Use this Website ngrok.com to Convert your http://localhost:3000 into a Base Url and run this Website ngrok.com Service and Replace local URL With Received URL like http://2f65a3a9.ngrok.io URL and Test the App. node

sushilkmishra commented 4 years ago

Hi Aditya, can you describe in detail how to load ejs in Webview or can you merge both tutorial in single react-native project. Thanks in advance.