Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to load script in React-native?

$
0
0

I want to load the script in my React native project. I would like to make a custom Razorpay payment. and we use typescript. I tried many ways but I am not getting a solution. Please give me a solution if it works then I accept your answer Anyone here with a solution for this? Thanks in Advance. Here is my code.

<script type="text/javascript" src="https://checkout.razorpay.com/v1/razorpay.js"></script>var razorpay = new Razorpay({            key: '<Key>',             image: 'https://i.imgur.com/n5tjHFD.png',          });          razorpay.once('ready', function(response: any) {            console.log(response);

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>