Tap-Payments / gosellSDK-ReactNative

ReactNative plugin for goSell checkout SDK
11 stars 12 forks source link

The SDK not work on our Expo app #18

Open alhusamia opened 3 years ago

alhusamia commented 3 years ago

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 commented 3 years ago

@akabulhasan This library does not support expo apps

alhusamia commented 3 years ago

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

ramisalem commented 3 years ago

I think so

sofimohsin0007 commented 3 years ago

@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 commented 3 years ago

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

kareemTap commented 3 years ago

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

sofimohsin0007 commented 3 years ago

@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 commented 3 years ago

@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