Loading Screen
See original GitHub issueI tried using this library with react-native expo. After setting up all the configuration when I load the webview it keeps showing the loader without any feedback. This is the example I used
<View style={{flex: 1}}>
<PaystackWebView
showPayButton={false}
paystackKey="MY_OWN_KEY"
amount={120000}
billingEmail="paystackwebview@something.com"
billingMobile="09787377462"
billingName="Oluwatobi Shokunbi"
ActivityIndicatorColor="green"
SafeAreaViewContainer={{marginTop: 5}}
SafeAreaViewContainerModal={{marginTop: 5}}
onCancel={() => { alert('cancelled'); }}
onSuccess={() => { alert('success'); }}
ref={childRef}
/> <TouchableOpacity onPress={()=> childRef.current.StartTransaction()}>
<Text>pay now</Text>
<TouchableOpacity/>
</View>
Issue Analytics
- State:
- Created 3 years ago
- Comments:49 (13 by maintainers)
Top Results From Across the Web
Loading screen - Wikipedia
A loading screen is a screen shown by a computer program, very often a video game, while the program is loading (moving program...
Read more >Loading Screen designs, themes, templates and ... - Dribbble
Loading Screen. 617 inspirational designs, illustrations, and graphic elements from the world's best designers. Want more inspiration?
Read more >Loading Screen Images - Adobe Stock
Search from thousands of royalty-free Loading Screen stock images and video for your next project. Download royalty-free stock photos, vectors, ...
Read more >Loading screen Images | Free Vectors, Stock Photos & PSD
Find & Download Free Graphic Resources for Loading Screen. 2000+ Vectors, Stock Photos & PSD files. ✓ Free for commercial use ✓ High...
Read more >Loading Screen - Retro Gaming Consoles, Cartridges ...
Buy NES, SNES, N64 classic games and Funko Pops online and in-store purchase. Visit Loading Screen Tillsonburg for all your gaming needs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello Everybody,
For anyone experiencing the blank screen issue after the indicator, i resolve mine with the following steps:
In the above screen shot from the RN PAYSTACK WEBVIEW module file, channel prop (props.channels) is being assigned to the paystack channels configuration option which accepts only array values ([‘card’, ‘bank’, ‘ussd’, ‘qr’, ‘mobile_money’]).
So channel props doesn’t have a default value neither does it have a user defined value. All i had to do was to assign a channel value and it worked.
For some unknown reason, i was getting a “Transcation could not start” but after assigning props value, but i couldn’t just continue troubleshooting so i had to assign values directly to the config options (currency, channels) in the module file.
I hope this can be of help to others too.
File Location: $…\node_modules\react-native-paystack-webview\index.js
seems to me paystack api wont let this transaction start. i read the docs and found a clue to make it work and it scaled thru. thanks for all the digging deep paystack-webview made me do… i made it work with no issues this time. try making sure the webview renders the paystack-webview once and not multiple times. find a way to communicate to a dedicated server having the paystack code that runs when u inject into the script loaded into webview and … just make it work. thanks guys. good luck