rafaelklaessen / react-tradingview-widget

React component for rendering the TradingView Advanced Real-Time Chart Widget.
MIT License
273 stars 94 forks source link

Could not use it like a component #13

Closed LuSoSmartDev closed 6 years ago

LuSoSmartDev commented 6 years ago

I try your example and it alway said that " Invariant Violation: View config not found for name article" I posted my code bellow [import React, { Component } from 'react'; import { Text, View, Image, TouchableHighlight,StyleSheet,Dimensions, TouchableOpacity } from 'react-native';

import TradingViewWidget, { Themes } from 'react-tradingview-widget';

class TradingView extends Component{ render(){ return(<TradingViewWidget symbol="NASDAQ:AAPL" theme={Themes.DARK} locale="fr" autosize />) } } export default TradingViewWidget

rafaelklaessen commented 6 years ago

This component does not work on react-native (and never will because TradingView itself only supports web)