Animated the container and added revalidation of credentials on app reopen

This commit is contained in:
Keannu Christian Bernasol 2023-07-04 14:18:48 +08:00
parent 11c4f0c264
commit 278bb72ec1
11 changed files with 307 additions and 43 deletions

View file

@ -11,6 +11,7 @@ import HomeIcon from "../../icons/HomeIcon/HomeIcon";
import LoginIcon from "../../icons/LoginIcon/LoginIcon";
import SignupIcon from "../../icons/SignupIcon/SignupIcon";
import DrawerButton from "../Button/DrawerButton";
import AddIcon from "../../icons/AddIcon/AddIcon";
export default function CustomDrawerContent(props: {}) {
const navigation = useNavigation<RootDrawerParamList>();
@ -52,6 +53,15 @@ export default function CustomDrawerContent(props: {}) {
<SignupIcon size={32} />
<Text style={styles.text_white_medium}>Register</Text>
</DrawerButton>
<DrawerButton
color={colors.blue_2}
onPress={() => {
navigation.navigate("Revalidation");
}}
>
<AddIcon size={32} />
<Text style={styles.text_white_medium}>Revalidation</Text>
</DrawerButton>
</DrawerContentScrollView>
);
}