Commit d5610fea by Giang Tran

fix bug ui

parent da32c7b3
...@@ -3,7 +3,7 @@ import {View, Text, StyleSheet, TouchableOpacity} from 'react-native'; ...@@ -3,7 +3,7 @@ import {View, Text, StyleSheet, TouchableOpacity} from 'react-native';
import HeaderBack from '../../../components/Header/HeaderBack'; import HeaderBack from '../../../components/Header/HeaderBack';
import Success from './Tab/Success'; import Success from './Tab/Success';
import Watting from './Tab/Watting'; import Watting from './Tab/Watting';
import {getFontXD} from '../../../Config/Functions'; import {getFontXD, HEIGHTXD, WIDTHXD} from '../../../Config/Functions';
import {WALLETDEPOSIT, WALLETWITHDRAW} from '../../../routers/ScreenNames'; import {WALLETDEPOSIT, WALLETWITHDRAW} from '../../../routers/ScreenNames';
import I18n from '../../../helper/i18/i18n'; import I18n from '../../../helper/i18/i18n';
import AppText from '../../../components/AppText'; import AppText from '../../../components/AppText';
...@@ -61,8 +61,8 @@ const styles = StyleSheet.create({ ...@@ -61,8 +61,8 @@ const styles = StyleSheet.create({
justifyContent: 'space-around', justifyContent: 'space-around',
}, },
btnRight: { btnRight: {
width: 140, width: WIDTHXD(400),
height: 40, height: HEIGHTXD(100),
backgroundColor: R.colors.main, backgroundColor: R.colors.main,
borderRadius: 10, borderRadius: 10,
justifyContent: 'center', justifyContent: 'center',
...@@ -80,8 +80,8 @@ const styles = StyleSheet.create({ ...@@ -80,8 +80,8 @@ const styles = StyleSheet.create({
elevation: 1, elevation: 1,
}, },
btnLeft: { btnLeft: {
width: 140, width: WIDTHXD(400),
height: 40, height: HEIGHTXD(100),
backgroundColor: R.colors.main, backgroundColor: R.colors.main,
borderRadius: 10, borderRadius: 10,
justifyContent: 'center', justifyContent: 'center',
......
...@@ -22,6 +22,8 @@ import { ...@@ -22,6 +22,8 @@ import {
getFontXD, getFontXD,
toPriceVnd, toPriceVnd,
checkFormatArray, checkFormatArray,
WIDTHXD,
HEIGHTXD,
} from '../../../Config/Functions'; } from '../../../Config/Functions';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import {showLoading, hideLoading} from '../../../actions/loadingAction'; import {showLoading, hideLoading} from '../../../actions/loadingAction';
...@@ -172,8 +174,8 @@ const styles = StyleSheet.create({ ...@@ -172,8 +174,8 @@ const styles = StyleSheet.create({
fontWeight: 'bold', fontWeight: 'bold',
}, },
btnSend: { btnSend: {
width: 140, width: WIDTHXD(400),
height: 40, height: HEIGHTXD(100),
backgroundColor: R.colors.main, backgroundColor: R.colors.main,
borderRadius: 10, borderRadius: 10,
justifyContent: 'center', justifyContent: 'center',
......
...@@ -23,6 +23,7 @@ import { ...@@ -23,6 +23,7 @@ import {
HEIGHTXD, HEIGHTXD,
toPriceVnd, toPriceVnd,
checkFormatArray, checkFormatArray,
WIDTHXD,
} from '../../../Config/Functions'; } from '../../../Config/Functions';
import PickerItem from '../../../components/Picker/PickerItem'; import PickerItem from '../../../components/Picker/PickerItem';
import RadioForm from 'react-native-simple-radio-button'; import RadioForm from 'react-native-simple-radio-button';
...@@ -254,8 +255,8 @@ const styles = StyleSheet.create({ ...@@ -254,8 +255,8 @@ const styles = StyleSheet.create({
fontWeight: 'bold', fontWeight: 'bold',
}, },
btnSend: { btnSend: {
width: 140, width: WIDTHXD(400),
height: 40, height: HEIGHTXD(100),
backgroundColor: R.colors.main, backgroundColor: R.colors.main,
borderRadius: 10, borderRadius: 10,
justifyContent: 'center', justifyContent: 'center',
......
...@@ -193,8 +193,8 @@ const styles = StyleSheet.create({ ...@@ -193,8 +193,8 @@ const styles = StyleSheet.create({
marginBottom: 30, marginBottom: 30,
}, },
btn: { btn: {
width: 180, width: WIDTHXD(400),
height: HEIGHTXD(120), height: HEIGHTXD(100),
borderRadius: 10, borderRadius: 10,
backgroundColor: '#1C6AF6', backgroundColor: '#1C6AF6',
justifyContent: 'center', justifyContent: 'center',
......
...@@ -18,7 +18,12 @@ import R from '../../assets/R'; ...@@ -18,7 +18,12 @@ import R from '../../assets/R';
import HeaderBack from '../../components/Header/HeaderBack'; import HeaderBack from '../../components/Header/HeaderBack';
import Item from './Item'; import Item from './Item';
import {getFontXD, WIDTHXD, checkFormatArray} from '../../Config/Functions'; import {
getFontXD,
WIDTHXD,
checkFormatArray,
HEIGHTXD,
} from '../../Config/Functions';
import TextField from '../../components/Input/TextField'; import TextField from '../../components/Input/TextField';
import PickerItem from '../../components/Picker/PickerItem'; import PickerItem from '../../components/Picker/PickerItem';
import {getListBank, addMethodBank} from '../../apis/Functions/Widthdraw'; import {getListBank, addMethodBank} from '../../apis/Functions/Widthdraw';
...@@ -152,8 +157,8 @@ const styles = StyleSheet.create({ ...@@ -152,8 +157,8 @@ const styles = StyleSheet.create({
}, },
btn: { btn: {
width: 150, width: WIDTHXD(400),
height: 40, height: HEIGHTXD(100),
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
backgroundColor: R.colors.main, backgroundColor: R.colors.main,
......
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