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

React Native ile WebView üzerinde açılmama sorunu. #110

Closed
ugurcanalyuz opened this issue Jul 22, 2023 · 1 comment
Closed

React Native ile WebView üzerinde açılmama sorunu. #110

ugurcanalyuz opened this issue Jul 22, 2023 · 1 comment

Comments

@ugurcanalyuz
Copy link

Merhaba.

Node JS Backend üzerinden React Native projeme Iyzico'nun JSON verisi başarılı bir şekilde geliyor.

Ancak React Native üzerinde kullandığımız react-native-webview isimli kütüphaneye source değerini html olarak verdiğimiz zaman maalesef içerik yüklenmiyor. Bununla ilgili araştırdığım zaman bir kaç arkadaşında bu sorunu yaşadığını gördüm ve hatta bununla ilgili yetersiz bir Medium bilgisi paylaşılmış.

Şurada: https://mhmttanas.medium.com/react-native-iyzico-form-entegrasyonu-e76bdbd1f7cd

Iyzico ise <div id="iyzipay-checkout-form" class="responsive"></div> HTML etiketini istiyor ve ben buraya, ilgili script yüklenince Load olacağım diyor. Ancak bu React Native'de mümkün değil :)

Önerisi olan var mı?

@ugurcanalyuz
Copy link
Author

ugurcanalyuz commented Jul 24, 2023

Arkadaşlar konuyu şöyle çözdüm;

Backend tarafında gelen veriyi şu şekilde çevirip Frontend tarafına döndürdüm;

<html><head></head><body><div id="iyzipay-checkout-form" class="responsive"></div></body>${paymentProcess.checkoutFormContent}</html>

Yalnız Simulator üzerinde çalışmayabilir Real Device üzerinde deneyin.

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

1 participant