Dipindah ke halaman login dan cek dengan modal Fix: Authentication & EULA - context/AuthContext.tsx - screens/Authentication/EULAView.tsx - screens/Authentication/LoginView.tsx Add: - components/Modal/ModalReactNative.tsx - screens/Authentication/EULASection.tsx ### No Issue
34 lines
662 B
TypeScript
34 lines
662 B
TypeScript
import { Modal, View } from "react-native";
|
|
|
|
export default function ModalReactNative({
|
|
children,
|
|
isVisible,
|
|
}: {
|
|
children: React.ReactNode;
|
|
isVisible: boolean;
|
|
}) {
|
|
return (
|
|
<Modal
|
|
animationType="slide"
|
|
backdropColor={"rgba(0, 0, 0, 0.5)"}
|
|
visible={isVisible}
|
|
>
|
|
<View
|
|
style={{
|
|
flex: 1,
|
|
justifyContent: "center",
|
|
alignItems: "center",
|
|
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
// margin: 10,
|
|
marginBlock: 30,
|
|
padding: 10,
|
|
borderRadius: 10,
|
|
paddingTop: 30
|
|
}}
|
|
>
|
|
{children}
|
|
</View>
|
|
</Modal>
|
|
);
|
|
}
|