react-tradingview-widget icon indicating copy to clipboard operation
react-tradingview-widget copied to clipboard

React Native ?

Open bytemtek opened this issue 4 years ago • 2 comments

How I can use it React Native ?

bytemtek avatar Mar 19 '20 14:03 bytemtek

still no solution?

Great-hijack avatar Apr 30 '20 16:04 Great-hijack

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)
              }
            }
          }
        />

tad3j avatar Aug 22 '20 21:08 tad3j