Commit dbb16f2e by Giang Tran

edit ui

parent 4a64ed70
...@@ -72,7 +72,7 @@ const styles = StyleSheet.create({ ...@@ -72,7 +72,7 @@ const styles = StyleSheet.create({
container: { container: {
flexDirection: 'row', flexDirection: 'row',
paddingHorizontal: 30, paddingHorizontal: 30,
marginTop: 20,
justifyContent: 'space-between', justifyContent: 'space-between',
flexWrap: 'wrap', flexWrap: 'wrap',
}, },
......
...@@ -213,7 +213,7 @@ const Profile = (props) => { ...@@ -213,7 +213,7 @@ const Profile = (props) => {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
btnSend: { btnSend: {
width: '100%', width: '100%',
marginBottom: 30, marginBottom: 10,
}, },
btnNext: { btnNext: {
borderRadius: 30, borderRadius: 30,
......
...@@ -29,7 +29,7 @@ const ConfirmEmail = (props) => { ...@@ -29,7 +29,7 @@ const ConfirmEmail = (props) => {
platform: Platform.OS, platform: Platform.OS,
otp_by: value, otp_by: value,
}); });
console.log(res.data);
props.hideLoading(); props.hideLoading();
if (res.data.code == 200) { if (res.data.code == 200) {
navigate.navigate(CONFIRMOTP, {email: value}); navigate.navigate(CONFIRMOTP, {email: value});
......
...@@ -13,7 +13,7 @@ const Footer = (props) => { ...@@ -13,7 +13,7 @@ const Footer = (props) => {
</View> </View>
<View style={{flex: 1, paddingHorizontal: 15}}> <View style={{flex: 1, paddingHorizontal: 15}}>
<Text style={styles.txt}>Doanh thu ca đội</Text> <Text style={styles.txt}>Doanh thu ca đội</Text>
<Text style={styles.txtMoney}>$ {toPriceVnd(1500000)} Đ</Text> <Text style={styles.txtMoney}>{toPriceVnd(1500000)} Đ</Text>
</View> </View>
<View style={{justifyContent: 'center', alignItems: 'center'}}> <View style={{justifyContent: 'center', alignItems: 'center'}}>
<Icon name={'right'} size={20} color={'#707070'} /> <Icon name={'right'} size={20} color={'#707070'} />
...@@ -26,7 +26,7 @@ const Footer = (props) => { ...@@ -26,7 +26,7 @@ const Footer = (props) => {
</View> </View>
<View style={{flex: 1, paddingHorizontal: 15}}> <View style={{flex: 1, paddingHorizontal: 15}}>
<Text style={styles.txt}>Doanh thu nhà tài tr</Text> <Text style={styles.txt}>Doanh thu nhà tài tr</Text>
<Text style={styles.txtMoney}>$ {toPriceVnd(1500000)} Đ</Text> <Text style={styles.txtMoney}>{toPriceVnd(1500000)} Đ</Text>
</View> </View>
<View style={{justifyContent: 'center', alignItems: 'center'}}> <View style={{justifyContent: 'center', alignItems: 'center'}}>
<Icon name={'right'} size={20} color={'#707070'} /> <Icon name={'right'} size={20} color={'#707070'} />
...@@ -39,7 +39,7 @@ const Footer = (props) => { ...@@ -39,7 +39,7 @@ const Footer = (props) => {
</View> </View>
<View style={{flex: 1, paddingHorizontal: 15}}> <View style={{flex: 1, paddingHorizontal: 15}}>
<Text style={styles.txt}>Đầu tư</Text> <Text style={styles.txt}>Đầu tư</Text>
<Text style={styles.txtMoney}>$ {toPriceVnd(1500000)} Đ</Text> <Text style={styles.txtMoney}>{toPriceVnd(1500000)} Đ</Text>
</View> </View>
<View style={{justifyContent: 'center', alignItems: 'center'}}> <View style={{justifyContent: 'center', alignItems: 'center'}}>
<Icon name={'right'} size={20} color={'#707070'} /> <Icon name={'right'} size={20} color={'#707070'} />
......
...@@ -43,7 +43,7 @@ const GeneralInfor = (props) => { ...@@ -43,7 +43,7 @@ const GeneralInfor = (props) => {
<KeyboardAvoidingView <KeyboardAvoidingView
behavior={Platform.Os === 'ios' ? 'padding' : 'height'} behavior={Platform.Os === 'ios' ? 'padding' : 'height'}
style={{flex: 1}} style={{flex: 1}}
keyboardVerticalOffset={-50}> keyboardVerticalOffset={-500}>
<ScrollView style={{flex: 1}} showsVerticalScrollIndicator={false}> <ScrollView style={{flex: 1}} showsVerticalScrollIndicator={false}>
<View style={styles.container}> <View style={styles.container}>
<TextField <TextField
...@@ -95,15 +95,17 @@ const GeneralInfor = (props) => { ...@@ -95,15 +95,17 @@ const GeneralInfor = (props) => {
/> />
<TextMulti value={props.user.address} title={'Địa chỉ'} /> <TextMulti value={props.user.address} title={'Địa chỉ'} />
</View>
</ScrollView> <View style={{height: 40}} />
<View style={styles.footer}> <View style={{justifyContent: 'center', alignItems: 'center'}}>
<TouchableOpacity <TouchableOpacity
onPress={() => console.log('Hello')} onPress={() => console.log('Hello')}
style={styles.btn}> style={styles.btn}>
<Text style={styles.txtBtn}>Cp nht</Text> <Text style={styles.txtBtn}>Cp nht</Text>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
</View>
</ScrollView>
</KeyboardAvoidingView> </KeyboardAvoidingView>
); );
}; };
...@@ -147,7 +149,7 @@ const styles = StyleSheet.create({ ...@@ -147,7 +149,7 @@ const styles = StyleSheet.create({
marginBottom: 30, marginBottom: 30,
}, },
btn: { btn: {
width: WIDTHXD(521), width: 180,
height: HEIGHTXD(120), height: HEIGHTXD(120),
borderRadius: 10, borderRadius: 10,
backgroundColor: '#1C6AF6', backgroundColor: '#1C6AF6',
......
...@@ -38,7 +38,7 @@ export default React.memo(Item); ...@@ -38,7 +38,7 @@ export default React.memo(Item);
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
marginTop: 10, marginTop: 10,
height: HEIGHTXD(320), paddingVertical: 5,
shadowColor: '#000', shadowColor: '#000',
shadowOffset: { shadowOffset: {
width: 0, width: 0,
......
...@@ -6,7 +6,6 @@ import {WebView} from 'react-native-webview'; ...@@ -6,7 +6,6 @@ import {WebView} from 'react-native-webview';
import {root} from '../../apis/url'; import {root} from '../../apis/url';
const DepositView = (props) => { const DepositView = (props) => {
console.log('Link', root + '/api/v1/news/posts?id=' + props.route.params.id);
return ( return (
<View style={{flex: 1}}> <View style={{flex: 1}}>
<HeaderBack isWhite={true} title={'Chi tiết'} /> <HeaderBack isWhite={true} title={'Chi tiết'} />
......
...@@ -97,7 +97,6 @@ const NewFeed = (props) => { ...@@ -97,7 +97,6 @@ const NewFeed = (props) => {
{fillters.map((e) => ( {fillters.map((e) => (
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
console.log(e.id);
setSelected(e.id); setSelected(e.id);
}} }}
key={e.id} key={e.id}
...@@ -119,7 +118,7 @@ const NewFeed = (props) => { ...@@ -119,7 +118,7 @@ const NewFeed = (props) => {
<View style={{flex: 1, paddingHorizontal: 10}}> <View style={{flex: 1, paddingHorizontal: 10}}>
<FlatList <FlatList
showsVerticalScrollIndicator={false} showsVerticalScrollIndicator={false}
keyExtractor={(item, index) => item.id} keyExtractor={(item, index) => item.id + 'a'}
refreshing={isRefresh} refreshing={isRefresh}
onRefresh={() => onRefresh()} onRefresh={() => onRefresh()}
onEndReachedThreshold={0.01} onEndReachedThreshold={0.01}
......
...@@ -18,7 +18,11 @@ const Item = (props) => { ...@@ -18,7 +18,11 @@ const Item = (props) => {
<Text numberOfLines={2} style={styles.txtTitle}> <Text numberOfLines={2} style={styles.txtTitle}>
{title} {title}
</Text> </Text>
<View style={styles.row}>
<Icon name={'calendar'} style={{marginRight: 10}} size={15} />
<Text style={styles.txtDate}>{published_at}</Text> <Text style={styles.txtDate}>{published_at}</Text>
</View>
<Image source={{uri: image}} resizeMode={'cover'} style={styles.img} /> <Image source={{uri: image}} resizeMode={'cover'} style={styles.img} />
</TouchableOpacity> </TouchableOpacity>
); );
...@@ -36,13 +40,12 @@ const styles = StyleSheet.create({ ...@@ -36,13 +40,12 @@ const styles = StyleSheet.create({
}, },
txtTitle: { txtTitle: {
fontSize: getFontXD(46), fontSize: getFontXD(42),
color: 'black', color: 'black',
fontWeight: 'bold', fontWeight: 'bold',
}, },
txtDate: { txtDate: {
fontSize: getFontXD(46), fontSize: getFontXD(36),
fontStyle: 'italic',
color: '#A2A2A2', color: '#A2A2A2',
}, },
img: { img: {
...@@ -51,6 +54,10 @@ const styles = StyleSheet.create({ ...@@ -51,6 +54,10 @@ const styles = StyleSheet.create({
borderRadius: 5, borderRadius: 5,
marginTop: 5, marginTop: 5,
}, },
row: {
flexDirection: 'row',
alignItems: 'center',
},
}); });
export default Item; export default Item;
...@@ -66,7 +66,7 @@ const NotificaitonView = (props) => { ...@@ -66,7 +66,7 @@ const NotificaitonView = (props) => {
return ( return (
<View style={{flex: 1}}> <View style={{flex: 1}}>
<HeaderDrawer isWhite={false} title={'Thông báo'} /> <HeaderDrawer isWhite={true} title={'Thông báo'} />
<View style={styles.headerContainer}> <View style={styles.headerContainer}>
<FlatList <FlatList
showsHorizontalScrollIndicator={false} showsHorizontalScrollIndicator={false}
......
...@@ -15,18 +15,13 @@ const Button = (props) => { ...@@ -15,18 +15,13 @@ const Button = (props) => {
return ( return (
<TouchableOpacity style={styles.container} onPress={onClick}> <TouchableOpacity style={styles.container} onPress={onClick}>
<ImageBackground <ImageBackground
imageStyle={{ resizeMode={'cover'}
borderRadius: 20,
height: HEIGHTXD(150),
width: '100%',
}}
style={{ style={{
height: HEIGHTXD(150), height: 50,
width: WIDTHXD(1005), width: 300,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
borderRadius: 20, borderRadius: 20,
width: '100%',
}} }}
source={R.images.bgBtn}> source={R.images.bgBtn}>
<Text style={styles.txt}>{title}</Text> <Text style={styles.txt}>{title}</Text>
......
...@@ -42,7 +42,6 @@ const HeaderHome = (props) => { ...@@ -42,7 +42,6 @@ const HeaderHome = (props) => {
}; };
const onModalClick = () => { const onModalClick = () => {
console.log('Option click', isSelected);
setOpenModal(false); setOpenModal(false);
}; };
......
...@@ -24,9 +24,7 @@ const ModalOption = (props) => { ...@@ -24,9 +24,7 @@ const ModalOption = (props) => {
const {isOpen, closeModal, onChangePicker, onClick} = props; const {isOpen, closeModal, onChangePicker, onClick} = props;
const [isDatePickerVisible, setDatePickerVisibility] = useState(false); const [isDatePickerVisible, setDatePickerVisibility] = useState(false);
const dateConfirm = (props) => { const dateConfirm = (props) => {};
console.log('Hello');
};
return ( return (
<View style={styles.centeredView}> <View style={styles.centeredView}>
......
...@@ -18,6 +18,7 @@ const TextField = (props) => { ...@@ -18,6 +18,7 @@ const TextField = (props) => {
</Text> </Text>
<TextInput <TextInput
maxLength={maxLength} maxLength={maxLength}
textAlign={'left'}
value={value} value={value}
onChangeText={(val) => onChangeText(val)} onChangeText={(val) => onChangeText(val)}
multiline={true} multiline={true}
...@@ -25,6 +26,8 @@ const TextField = (props) => { ...@@ -25,6 +26,8 @@ const TextField = (props) => {
placeholderTextColor={R.colors.placeHolder} placeholderTextColor={R.colors.placeHolder}
autoCapitalize="none" autoCapitalize="none"
style={{ style={{
textAlignVertical: 'top',
textAlign: 'left',
color: 'black', color: 'black',
maxHeight: HEIGHTXD(259), maxHeight: HEIGHTXD(259),
minHeight: HEIGHTXD(169), minHeight: HEIGHTXD(169),
......
...@@ -36,7 +36,7 @@ const PickerImg = (props) => { ...@@ -36,7 +36,7 @@ const PickerImg = (props) => {
multiple: true, multiple: true,
}).then((images) => { }).then((images) => {
setModalVisible(false); setModalVisible(false);
console.log('images---', images);
const temp = images.map((e) => e.path); const temp = images.map((e) => e.path);
onClickImage(temp); onClickImage(temp);
}); });
...@@ -49,7 +49,7 @@ const PickerImg = (props) => { ...@@ -49,7 +49,7 @@ const PickerImg = (props) => {
height: 400, height: 400,
}).then((image) => { }).then((image) => {
setModalVisible(false); setModalVisible(false);
console.log(image);
onClickImage(image[0].path); onClickImage(image[0].path);
}); });
}; };
......
...@@ -113,8 +113,8 @@ const styles = StyleSheet.create({ ...@@ -113,8 +113,8 @@ const styles = StyleSheet.create({
}, },
wraper: { wraper: {
backgroundColor: R.colors.white, backgroundColor: R.colors.white,
width: WIDTHXD(175), width: WIDTHXD(160),
height: WIDTHXD(175), height: WIDTHXD(160),
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
position: 'absolute', position: 'absolute',
......
...@@ -73,7 +73,7 @@ const TabNavigator = (props) => { ...@@ -73,7 +73,7 @@ const TabNavigator = (props) => {
name="Screen4" name="Screen4"
component={NewFeed} component={NewFeed}
options={{ options={{
tabBarLabel: 'Thông tin', tabBarLabel: 'Tin tức',
tabBarIcon: ({color, size}) => ( tabBarIcon: ({color, size}) => (
<Ionicons name="newspaper-outline" size={size} color={color} /> <Ionicons name="newspaper-outline" size={size} color={color} />
), ),
......
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