import React, {Component} from 'react';
import {View, Text, Dimensions} from 'react-native';
import {WebView} from 'react-native-webview';
const {height} = Dimensions.get('window');
const Trading = (props) => {
  return (
    <View style={{flex: 1}}>
      <WebView
        androidHardwareAccelerationDisabled={true}
        style={{height: '100%', width: '100%'}}
        domStorageEnabled={false}
        source={{
          uri:
            'http://api.dcvinvest.com/webview/tradingview/chart?height=' +
            (height - 250),
        }}
      />
    </View>
  );
};

export default Trading;
