Open bytemtek opened 4 years ago
still no solution?
TV widget loads HTML which can't be rendered in React Native directly. Solution is to use WebView and pass original widget HTML/JS as html
prop (no need to use this package, although I guess it may also be possible).
<WebView
source={{ html }}
style={styles.webView}
startInLoadingState={true}
originWhitelist={['*']}
onLoadEnd={
(/*e*/) => {
if (!loaded) {
setLoaded(true)
}
}
}
/>
How I can use it React Native ?