-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
Shows blank white screen when I close the modal from the X button #6
Comments
Hey @PrincewillIroka, I honestly don't understand your issue, could you maybe share a screen record so i best understand the issue. Also what version of react native are you using ? |
@just1and0 Thanks for the prompt response. I'm using react-native 0.59.8, here is a screen record of the issue. You'll observe that after closing the modal, I get a blank white screen. |
I am stock on the white screen too when i click on the Cancel button and when i complete a payment. I have a feeling that the WebView property onMessage is not been triggered, thus it stuck since the state showModal remains true How can i resolve this issue of white screen ? |
I was able to solve the entire issue for this plugin after some research. PROBLEM 1 => PACKAGE GETS STUCK ON WHITE SCREEN SOLUTION Locate plugin index file at change => postMessage(JSON.stringify(resp)) Do this for both the callback: function(response) & on the onClose: function(). My app runs on the following versions PROBLEM 2 => PPAYMENT GETWAY WEBVIEW CONTENT IS TOO TINY SOLUTION Solving this is very easy. Locate plugin index file at add this code on the head tag so try this and THANK ME LATER |
Thanks, @okechukwu0127! seems you've cracked this one! I'm currently running a test on the PR you sent, once I'm done I guess I can close this issue by tonight. I have been working on some cool stuff for a new release to support react-native version 0.60>, if you'd like to be a maintainer I won't mind letting you in while we build cool stuff 😏 again thanks! |
@just1and0 thats not a problem at all. Regards |
Which code should be written for the tiny webpageview? |
@deveid I don't understand the question. |
@just1and0 The payment gateway is tiny, so I was asking how do I magnify it without having to zoom in |
hey, this issue has been resolved, try upgrading the package version to the latest! that should do it 😊 |
I'm using version 2.0.2 and its tiny except when zoomed in |
Add this code to the head tag =>
Also, upgrading the package would resolve all these issues like @just1and0 just said |
This library is awesome, but I'm facing a little challenge with going back to the app after closing the Paystack Interface (WebView) from the X button. When I click the X button, the WebView closes, but the app shows a blank white screen. I always have to close the app and open it again at this point.
The text was updated successfully, but these errors were encountered: