Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The SDK not work on our Expo app #18

Open
alhusamia opened this issue May 5, 2021 · 8 comments
Open

The SDK not work on our Expo app #18

alhusamia opened this issue May 5, 2021 · 8 comments

Comments

@alhusamia
Copy link

We tried to fiddle with the SDK, but are getting an undefined error in Components/Home/index.js line 86 when this function runs, likely due to the first log starting the second log(circular) :

startSDK() { console.log('start SDK'); console.log(this.sdkModule,"SKD Modal"); this.sdkModule && this.sdkModule.startPayment(sdkConfigurations, this.handleResult); }

We are using expo here , and here is the your sdk version and the expo version

@tap-payments/gosell-sdk-react-native": "1.0.6",
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz",
"expo": "~40.0.0",

@ramisalem
Copy link

ramisalem commented May 7, 2021

@akabulhasan This library does not support expo apps

@alhusamia
Copy link
Author

can we use a webview for all the endpoints of a payment?

@ramisalem
Copy link

I think so

@sofimohsin0007
Copy link

sofimohsin0007 commented May 23, 2021

@kholdunn @kareemTap @AhlaamK-tap

Assalamualailkum,
I have a react native app and I want to integrate it with Tap payment gateway and my app is using expo can you please help me how to integrate that as this code is not working and I am stuck in startsdk also I am getting this alert "PLEASE EJECT EXPO TO RUN native_modules".
Please help me in solving this problem...

@kareemTap
Copy link
Contributor

@alhusamia You need to eject the expo in order to use our library.

@kareemTap
Copy link
Contributor

@sofimohsin0007 You need to eject the expo in order to use our library.

@sofimohsin0007
Copy link

@kareemTap @alhusamia
Thanks for your response, I did that but after that it's not working and I don't know how to make that workable, please help me in making that code workable in my react native app.
Thanks

@kareemTap
Copy link
Contributor

@sofimohsin0007 Please follow the steps in the following URL to get the Expo eject work:
https://gist.github.com/phuochau/aeba7740c47fd4ed49c8b01698875fb0#file-step-to-step-to-eject-expo-by-right-way-md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants