Tradding.js 600 Bytes
Newer Older
Giang Tran committed
1
import React, {Component} from 'react';
Giang Tran committed
2
import {View, Text, Dimensions} from 'react-native';
Giang Tran committed
3
import {WebView} from 'react-native-webview';
Giang Tran committed
4
const {height} = Dimensions.get('window');
Giang Tran committed
5 6 7 8
const Trading = (props) => {
  return (
    <View style={{flex: 1}}>
      <WebView
Giang Tran committed
9
        androidHardwareAccelerationDisabled={true}
Giang Tran committed
10
        style={{height: '100%', width: '100%'}}
Giang Tran committed
11
        domStorageEnabled={false}
Giang Tran committed
12
        source={{
Giang Tran committed
13 14
          uri:
            'http://api.dcvinvest.com/webview/tradingview/chart?height=' +
Giang Tran committed
15
            (height - 250),
Giang Tran committed
16 17 18 19 20 21 22
        }}
      />
    </View>
  );
};

export default Trading;