/** Sub View / const loginCard = () => { return ( <View style={styles.cardView}>…
- User
/** Sub View */ const loginCard = () => { return (
code<BiometricView isLoginCredentialsPresent={isLoginCredentialsPresent} onAuthenticated={() => { return onNavigate(); }} /> <Divider type="horizontal" /> <View style={styles.row}> <SecondaryButton title={translate(translationKeys.ButtonForgotPassword)} onPress={() => { navigation.navigate("ForgotPasswordScreen"); }} /> <Divider type="vertical" /> <SecondaryButton title={translate(translationKeys.ButtonCreateAccount)} onPress={() => { navigation.navigate("TermsAndConditionsScreen"); }} /> </View> </View> ); }; const renderRootScreen = () => { if (isLoginCredentialsPresent === null) { showLoader(true); } const {updateStatus} = settingsState; const {isUpdateAvailable} = updateStatus; if (isUpdateAvailable) { showLoader(false); return null; } return <RootScreen onCallback={onCallback} />; }; /** Main view */ return ( <Background keyBoardHandled keyboardVerticalOffset={useHeaderHeight()}> {renderRootScreen()} <Alert visible={alertStatus.isVisible} title={alertStatus.title} description={alertStatus.message} positiveButtonTitle={alertStatus.buttonTitle} onPress={alertStatus.onPress || onDismissAlert} /> <StatusBar translucent barStyle="dark-content" backgroundColor="transparent" /> <ImageBackground style={styles.backgroundImage} source={{uri: getBackgroundImage(themeId)}} > <SafeAreaView> <ScrollView style={styles.container} scrollEnabled={isKeyBoardOpen} showsVerticalScrollIndicator={false} keyboardShouldPersistTaps="handled" > <View style={styles.cardContainer}> <Image style={styles.logo} resizeMode={DeviceInfo.isTablet() ? "contain" : "cover"} resizeMethod="scale" source={{uri: getLogo(themeId)}} /> <Card>{loginCard()}</Card> </View> </ScrollView> <BiometricAlert show={isAlertVisible} /> </SafeAreaView> </ImageBackground> </Background> ); - Assistant