UI Fix: Pada tampilan ios bagian button ada yang ta terlihat dan sudah di perbaiki

### No Issue
This commit is contained in:
2025-10-21 11:17:37 +08:00
parent 57285e5697
commit faf0f36e53
7 changed files with 16 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
import { import {
AlertDefaultSystem, AlertDefaultSystem,
BoxButtonOnFooter, BoxButtonOnFooter,
ButtonCustom,
TextAreaCustom, TextAreaCustom,
ViewWrapper, ViewWrapper,
} from "@/components"; } from "@/components";
@@ -22,9 +23,6 @@ export default function AdminVotingRejectInput() {
message: "Apakah anda yakin ingin menolak data ini?", message: "Apakah anda yakin ingin menolak data ini?",
textLeft: "Batal", textLeft: "Batal",
textRight: "Ya", textRight: "Ya",
onPressLeft: () => {
router.back();
},
onPressRight: () => { onPressRight: () => {
console.log("value:", value); console.log("value:", value);
router.replace(`/admin/voting/reject/status`); router.replace(`/admin/voting/reject/status`);
@@ -39,6 +37,7 @@ export default function AdminVotingRejectInput() {
<> <>
<ViewWrapper <ViewWrapper
footerComponent={buttonSubmit} footerComponent={buttonSubmit}
// edgesFooter={[]}
headerComponent={<AdminBackButtonAntTitle title="Penolakan Voting" />} headerComponent={<AdminBackButtonAntTitle title="Penolakan Voting" />}
> >
<TextAreaCustom <TextAreaCustom

View File

@@ -17,7 +17,6 @@
"axios": "^1.11.0", "axios": "^1.11.0",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"expo": "^54.0.0", "expo": "^54.0.0",
"expo-blur": "~15.0.7",
"expo-camera": "~17.0.7", "expo-camera": "~17.0.7",
"expo-clipboard": "~8.0.7", "expo-clipboard": "~8.0.7",
"expo-constants": "~18.0.8", "expo-constants": "~18.0.8",
@@ -1153,8 +1152,6 @@
"expo-asset": ["expo-asset@12.0.8", "", { "dependencies": { "@expo/image-utils": "^0.8.7", "expo-constants": "~18.0.8" }, "peerDependencies": { "expo": "*", "react": "*", "react-native": "*" } }, "sha512-jj2U8zw9+7orST2rlQGULYiqPoECOuUyffs2NguGrq84bYbkM041T7TOMXH2raPVJnM9lEAP54ezI6XL+GVYqw=="], "expo-asset": ["expo-asset@12.0.8", "", { "dependencies": { "@expo/image-utils": "^0.8.7", "expo-constants": "~18.0.8" }, "peerDependencies": { "expo": "*", "react": "*", "react-native": "*" } }, "sha512-jj2U8zw9+7orST2rlQGULYiqPoECOuUyffs2NguGrq84bYbkM041T7TOMXH2raPVJnM9lEAP54ezI6XL+GVYqw=="],
"expo-blur": ["expo-blur@15.0.7", "", { "peerDependencies": { "expo": "*", "react": "*", "react-native": "*" } }, "sha512-SugQQbQd+zRPy8z2G5qDD4NqhcD7srBF7fN7O7yq6q7ZFK59VWvpDxtMoUkmSfdxgqONsrBN/rLdk00USADrMg=="],
"expo-camera": ["expo-camera@17.0.7", "", { "dependencies": { "invariant": "^2.2.4" }, "peerDependencies": { "expo": "*", "react": "*", "react-native": "*", "react-native-web": "*" }, "optionalPeers": ["react-native-web"] }, "sha512-jdZfijfFjlVAuuIkDheA41YKpigPjqsN0juRvgyr7Lcyz+fvwZ3/RP50/n/hvuozH657wHxPfiyVVFa00z8TcQ=="], "expo-camera": ["expo-camera@17.0.7", "", { "dependencies": { "invariant": "^2.2.4" }, "peerDependencies": { "expo": "*", "react": "*", "react-native": "*", "react-native-web": "*" }, "optionalPeers": ["react-native-web"] }, "sha512-jdZfijfFjlVAuuIkDheA41YKpigPjqsN0juRvgyr7Lcyz+fvwZ3/RP50/n/hvuozH657wHxPfiyVVFa00z8TcQ=="],
"expo-clipboard": ["expo-clipboard@8.0.7", "", { "peerDependencies": { "expo": "*", "react": "*", "react-native": "*" } }, "sha512-zvlfFV+wB2QQrQnHWlo0EKHAkdi2tycLtE+EXFUWTPZYkgu1XcH+aiKfd4ul7Z0SDF+1IuwoiW9AA9eO35aj3Q=="], "expo-clipboard": ["expo-clipboard@8.0.7", "", { "peerDependencies": { "expo": "*", "react": "*", "react-native": "*" } }, "sha512-zvlfFV+wB2QQrQnHWlo0EKHAkdi2tycLtE+EXFUWTPZYkgu1XcH+aiKfd4ul7Z0SDF+1IuwoiW9AA9eO35aj3Q=="],

View File

@@ -14,7 +14,7 @@ export default function AdminButtonReject({
return ( return (
<> <>
<ButtonCustom <ButtonCustom
iconLeft={<IconReject />} iconLeft={<IconReject size={16} />}
backgroundColor={MainColor.red} backgroundColor={MainColor.red}
textColor="white" textColor="white"
onPress={onReject} onPress={onReject}

View File

@@ -12,7 +12,7 @@ import {
StyleProp, StyleProp,
ViewStyle, ViewStyle,
} from "react-native"; } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context"; import { NativeSafeAreaViewProps, SafeAreaView } from "react-native-safe-area-context";
interface ViewWrapperProps { interface ViewWrapperProps {
children: React.ReactNode; children: React.ReactNode;
@@ -21,6 +21,7 @@ interface ViewWrapperProps {
footerComponent?: React.ReactNode; footerComponent?: React.ReactNode;
floatingButton?: React.ReactNode; floatingButton?: React.ReactNode;
hideFooter?: boolean; hideFooter?: boolean;
edgesFooter?: NativeSafeAreaViewProps["edges"];
style?: StyleProp<ViewStyle>; style?: StyleProp<ViewStyle>;
} }
@@ -37,6 +38,7 @@ const ViewWrapper = ({
footerComponent, footerComponent,
floatingButton, floatingButton,
hideFooter = false, hideFooter = false,
edgesFooter =[],
style, style,
}: ViewWrapperProps) => { }: ViewWrapperProps) => {
const assetBackground = require("../../assets/images/main-background.png"); const assetBackground = require("../../assets/images/main-background.png");
@@ -77,7 +79,7 @@ const ViewWrapper = ({
{footerComponent ? ( {footerComponent ? (
<SafeAreaView <SafeAreaView
edges={["bottom"]} edges={Platform.OS === "ios" ? edgesFooter : ["bottom"]}
style={{ style={{
backgroundColor: MainColor.darkblue, backgroundColor: MainColor.darkblue,
height: OS_HEIGHT height: OS_HEIGHT

View File

@@ -23,7 +23,7 @@ export {
// OS Height // OS Height
const OS_ANDROID_HEIGHT = 115 const OS_ANDROID_HEIGHT = 115
const OS_IOS_HEIGHT = 65 const OS_IOS_HEIGHT = 70
const OS_HEIGHT = Platform.OS === "ios" ? OS_IOS_HEIGHT : OS_ANDROID_HEIGHT const OS_HEIGHT = Platform.OS === "ios" ? OS_IOS_HEIGHT : OS_ANDROID_HEIGHT
// Text Size // Text Size

View File

@@ -24,7 +24,6 @@
"axios": "^1.11.0", "axios": "^1.11.0",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"expo": "^54.0.0", "expo": "^54.0.0",
"expo-blur": "~15.0.7",
"expo-camera": "~17.0.7", "expo-camera": "~17.0.7",
"expo-clipboard": "~8.0.7", "expo-clipboard": "~8.0.7",
"expo-constants": "~18.0.8", "expo-constants": "~18.0.8",

View File

@@ -195,7 +195,14 @@ export const GStyles = StyleSheet.create({
bottomBar: { bottomBar: {
backgroundColor: MainColor.darkblue, backgroundColor: MainColor.darkblue,
borderTopColor: AccentColor.blue, borderTopColor: AccentColor.blue,
borderTopWidth: 1, // borderTopWidth: 0.5,
height: "100%",
justifyContent: "center",
shadowColor: AccentColor.blue,
shadowOffset: { width: 0, height: -5},
shadowOpacity: 0.4,
shadowRadius: 40,
elevation: 8, // untuk Android
}, },
bottomBarContainer: { bottomBarContainer: {
paddingHorizontal: 15, paddingHorizontal: 15,