upd: refactor style
This commit is contained in:
@@ -114,7 +114,7 @@ export default function EditBanner() {
|
||||
};
|
||||
|
||||
return (
|
||||
<SafeAreaView style={{ flex: 1, backgroundColor: colors.background }}>
|
||||
<SafeAreaView style={[Styles.flex1, { backgroundColor: colors.background }]}>
|
||||
<Stack.Screen
|
||||
options={{
|
||||
// headerLeft: () => (
|
||||
@@ -156,7 +156,7 @@ export default function EditBanner() {
|
||||
? selectedImage
|
||||
: selectedImage.uri
|
||||
}
|
||||
style={{ resizeMode: "contain", width: "100%", height: 100 }}
|
||||
style={[Styles.resizeContain, Styles.w100, { height: 100 }]}
|
||||
/>
|
||||
</Pressable>
|
||||
) : (
|
||||
@@ -165,7 +165,7 @@ export default function EditBanner() {
|
||||
style={[Styles.wrapPaper, Styles.contentItemCenter]}
|
||||
>
|
||||
<View
|
||||
style={{ justifyContent: "center", alignItems: "center" }}
|
||||
style={[Styles.contentItemCenter]}
|
||||
>
|
||||
<Entypo name="image" size={50} color={"#aeaeae"} />
|
||||
<Text style={[Styles.textInformation, Styles.mt05]}>
|
||||
|
||||
@@ -96,7 +96,7 @@ export default function CreateBanner() {
|
||||
};
|
||||
|
||||
return (
|
||||
<SafeAreaView style={{ flex: 1, backgroundColor: colors.background }}>
|
||||
<SafeAreaView style={[Styles.flex1, { backgroundColor: colors.background }]}>
|
||||
<Stack.Screen
|
||||
options={{
|
||||
// headerLeft: () => (
|
||||
@@ -142,7 +142,7 @@ export default function CreateBanner() {
|
||||
<Pressable onPress={pickImageAsync}>
|
||||
<Image
|
||||
src={selectedImage}
|
||||
style={{ resizeMode: "contain", width: "100%", height: 100 }}
|
||||
style={[Styles.resizeContain, Styles.w100, { height: 100 }]}
|
||||
/>
|
||||
</Pressable>
|
||||
) : (
|
||||
@@ -151,7 +151,7 @@ export default function CreateBanner() {
|
||||
style={[Styles.wrapPaper, Styles.contentItemCenter]}
|
||||
>
|
||||
<View
|
||||
style={{ justifyContent: "center", alignItems: "center" }}
|
||||
style={[Styles.contentItemCenter]}
|
||||
>
|
||||
<Entypo name="image" size={50} color={"#aeaeae"} />
|
||||
<Text style={[Styles.textInformation, Styles.mt05]}>
|
||||
|
||||
@@ -108,7 +108,7 @@ export default function BannerList() {
|
||||
|
||||
|
||||
return (
|
||||
<SafeAreaView style={{ flex: 1, backgroundColor: colors.background }}>
|
||||
<SafeAreaView style={[Styles.flex1, { backgroundColor: colors.background }]}>
|
||||
<Stack.Screen
|
||||
options={{
|
||||
// headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
||||
@@ -158,13 +158,12 @@ export default function BannerList() {
|
||||
/>
|
||||
}
|
||||
title={index.title}
|
||||
width={65}
|
||||
/>
|
||||
))}
|
||||
</View>
|
||||
:
|
||||
<View style={[Styles.p15, Styles.mb100]}>
|
||||
<Text style={[Styles.textDefault, { textAlign: 'center' }]}>Tidak ada data</Text>
|
||||
<Text style={[Styles.textDefault, Styles.textCenter]}>Tidak ada data</Text>
|
||||
</View>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user