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

Embed script tag in react-native mobile app

$
0
0

I'm trying to embed a script tag in my react-native mobile app. So far, I've been trying to create a component class and export that, but I was wondering if there's a way to export the script tag as a const with the following method:

export const Variable = JSX.Element => (script tag embedded here)

I can't seem to have it work and importing seems to also have a few issues. Let me know what is the method you would use to most easily export a script tag in react-native.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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