Commit 770aecc5 by Giang Tran

update code

parent 997d0fe8
......@@ -14,8 +14,8 @@ import RadioForm, {
} from 'react-native-simple-radio-button';
var radio_props = [
{label: 'Từ ví', value: 0},
{label: 'Từ tài khoản CQG', value: 1},
{label: 'Từ ví', value: 'wallet'},
{label: 'Từ tài khoản CQG', value: 'cqg'},
];
const {width} = Dimensions.get('window');
......
......@@ -75,7 +75,7 @@ const MediaDetail = (props) => {
videoId={data.video_id}
play={false}
onError={(e) => console.log({error: e.error})}
style={{alignSelf: 'stretch', height: 300}}
style={{alignSelf: 'stretch', height: 250}}
/>
<View style={styles.wrapTitle}>
<Text style={styles.txtTitle}>{data.title}</Text>
......@@ -106,7 +106,7 @@ const styles = StyleSheet.create({
fontWeight: 'bold',
},
wrapTitle: {
paddingVertical: 20,
paddingVertical: 10,
paddingHorizontal: 10,
borderBottomWidth: 0.7,
borderBottomColor: R.colors.borderGray,
......
import React, {Component} from 'react';
import {View, Text, FlatList} from 'react-native';
import {View, Text, FlatList, Dimensions} from 'react-native';
import {WebView} from 'react-native-webview';
const {height} = Dimensions.get('window');
const NewFeed = (props) => {
return (
<View
......@@ -12,7 +14,9 @@ const NewFeed = (props) => {
<WebView
style={{height: '100%', width: '100%'}}
source={{
uri: 'http://api.dcvinvest.com/webview/tradingview/price',
uri:
'http://api.dcvinvest.com/webview/tradingview/price?height=' +
(height - 150),
}}
/>
</View>
......
import React, {Component} from 'react';
import {View, Text} from 'react-native';
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
style={{height: '100%', width: '100%'}}
source={{
uri: 'http://api.dcvinvest.com/webview/tradingview/chart?height=400',
uri:
'http://api.dcvinvest.com/webview/tradingview/chart?height=' +
(height - 150),
}}
/>
</View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment