Commit 3c343a8f by tungnq

TODO: Đã hoàn thiện giao diện android

parent 414a1393
...@@ -12,7 +12,7 @@ const styles = StyleSheet.create({ ...@@ -12,7 +12,7 @@ const styles = StyleSheet.create({
minWidth:Platform.OS === 'ios' ? 70 : 80, minWidth:Platform.OS === 'ios' ? 70 : 80,
backgroundColor:R.colors.grayButton, backgroundColor:R.colors.grayButton,
borderRadius:10, borderRadius:10,
marginHorizontal:Platform.OS === 'ios' ? 10 : 5, marginRight:Platform.OS === 'ios' ? 10 : 15,
alignItems:'center', alignItems:'center',
justifyContent:'center', justifyContent:'center',
}, },
...@@ -24,8 +24,8 @@ const styles = StyleSheet.create({ ...@@ -24,8 +24,8 @@ const styles = StyleSheet.create({
flexDirection:'row', flexDirection:'row',
alignItems:'center', alignItems:'center',
justifyContent:'center', justifyContent:'center',
marginVertical:2,
marginHorizontal:15, marginHorizontal:15,
marginVertical:15,
}, },
textTabView:{ textTabView:{
color:R.colors.white, color:R.colors.white,
...@@ -42,8 +42,8 @@ const styles = StyleSheet.create({ ...@@ -42,8 +42,8 @@ const styles = StyleSheet.create({
borderColor:R.colors.grayBorderInputTextHeader, borderColor:R.colors.grayBorderInputTextHeader,
borderWidth:1, borderWidth:1,
borderRadius:100, borderRadius:100,
marginVertical:10,
marginHorizontal:15, marginHorizontal:15,
marginBottom:15,
backgroundColor:R.colors.white, backgroundColor:R.colors.white,
flexDirection:'row', flexDirection:'row',
maxHeight:41, maxHeight:41,
...@@ -55,7 +55,7 @@ const styles = StyleSheet.create({ ...@@ -55,7 +55,7 @@ const styles = StyleSheet.create({
maxHeight:35, maxHeight:35,
alignItems:'center', alignItems:'center',
justifyContent:'center', justifyContent:'center',
marginHorizontal:5, marginHorizontal:Platform.OS === 'ios' ? 5 : 10,
}, },
inputSearch:{ inputSearch:{
fontSize:R.sizes.sm, fontSize:R.sizes.sm,
...@@ -67,18 +67,17 @@ const styles = StyleSheet.create({ ...@@ -67,18 +67,17 @@ const styles = StyleSheet.create({
containerListNotification:{ containerListNotification:{
}, },
cardItem:{ cardItem:{
paddingVertical:10,
paddingHorizontal:15, paddingHorizontal:15,
borderColor:R.colors.grayBorderInputTextHeader, borderColor:R.colors.grayBorderInputTextHeader,
borderRadius:10, borderRadius:10,
marginVertical:10,
backgroundColor:R.colors.white, backgroundColor:R.colors.white,
shadowColor:R.colors.black, shadowColor:R.colors.black,
marginHorizontal:15, marginHorizontal:15,
shadowOffset:{width:0.5,height:2}, shadowOffset:{width:0.5,height:2},
shadowOpacity:0.25, shadowOpacity:Platform.OS === 'ios' ? 0.25 : 1,
shadowRadius:5, shadowRadius:5,
elevation:1, elevation:Platform.OS === 'ios' ? 1 : 5,
marginBottom:15,
}, },
cardItemTution:{ cardItemTution:{
flexDirection:'row', flexDirection:'row',
...@@ -117,6 +116,21 @@ const styles = StyleSheet.create({ ...@@ -117,6 +116,21 @@ const styles = StyleSheet.create({
boxTimeView:{ boxTimeView:{
alignItems:'flex-end', alignItems:'flex-end',
}, },
btnFooter:{
backgroundColor:R.colors.blue,
paddingVertical:10,
paddingHorizontal:20,
borderRadius:10,
alignItems:'center',
justifyContent:'center',
marginHorizontal:15,
marginBottom:10,
},
textBtnFooter:{
color:R.colors.white,
fontSize:R.sizes.sm,
fontWeight:'500',
fontFamily:R.fonts.fontMedium,
},
}) })
export default styles; export default styles;
\ No newline at end of file
...@@ -98,8 +98,6 @@ const NotificationView = props => { ...@@ -98,8 +98,6 @@ const NotificationView = props => {
<View style={styles.boxTimeView}> <View style={styles.boxTimeView}>
<Text style={styles.text} numberOfLines={1} ellipsizeMode="tail">{item.time}</Text> <Text style={styles.text} numberOfLines={1} ellipsizeMode="tail">{item.time}</Text>
</View> </View>
</View> </View>
); );
}; };
...@@ -171,6 +169,11 @@ const NotificationView = props => { ...@@ -171,6 +169,11 @@ const NotificationView = props => {
{dataNotifi[activeTab].length === 0 ? renderItemEmpty(): renderListNotification()} {dataNotifi[activeTab].length === 0 ? renderItemEmpty(): renderListNotification()}
</View> </View>
<View style={styles.containerFooter}>
<TouchableOpacity style={styles.btnFooter} onPress={() => navigate.navigate(SCREENNAME.PROFILE)}>
<Text style={styles.textBtnFooter}>To thông báo mi</Text>
</TouchableOpacity>
</View>
</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