Commit 770aecc5 by Giang Tran

update code

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