Live Preview with Expo
Scan the QR code with your camera. Don't have Expo yet? Enter your email or phone number and we'll send a link.
No items found.

SMS Auth Confirmation

Confirmation

Confirm authentication from unique SMS code.

Preview this Screen

Scan with your camera to preview on your phone:

Download Expo
Screen Code

-- CODE language-jsx --
import React from 'react';
import {
 Button,
 Container,
 ScreenContainer,
 TextField,
 withTheme,
} from '@draftbit/ui';
import {
 KeyboardAvoidingView,
 StatusBar,
 StyleSheet,
 Text,
} from 'react-native';
const REPLACE_SCREEN_NAME = props => {
 const [textFieldValue, setTextFieldValue] = React.useState(undefined);
 const { theme } = props;
 React.useEffect(() => {
   StatusBar.setBarStyle('dark-content');
 }, []);
 return (
   <ScreenContainer scrollable={true} hasSafeArea={true}>
     <KeyboardAvoidingView
       style={styles.keyboardAvoidingViewK8}
       enabled={true}
       behavior=""padding""
       keyboardVerticalOffset={60}
     >
       <Container
         style={styles.containerYc}
         elevation={0}
         useThemeGutterPadding={true}
       >
         <Text
           style={StyleSheet.flatten([
             styles.textFt,
             theme.typography.headline4,
             { color: theme.colors.strong },
           ])}
         >
           Confirm Account
         </Text>
         <Text
           style={StyleSheet.flatten([
             styles.textF2,
             theme.typography.body1,
             { color: theme.colors.strong },
           ])}
         >
           We've sent you a message containing a unique 5 digit code. Enter it
           to continue.
         </Text>
         <TextField
           style={styles.textField4A}
           type=""underline""
           label=""Confirmation Code""
           keyboardType=""numeric""
           leftIconMode=""inset""
           value={textFieldValue}
           onChangeText={textFieldValue => setTextFieldValue(textFieldValue)}
         />
       </Container>
       <Container elevation={0} useThemeGutterPadding={true}>
         <Button style={styles.buttonDA} type=""solid"">
           Confirm Account
         </Button>
         <Text
           style={StyleSheet.flatten([
             styles.textOD,
             theme.typography.caption,
             { color: theme.colors.light },
           ])}
         >
           By signing in you agree to our Terms of Service, Privacy Policy and
           Cookie Policy.
         </Text>
       </Container>
     </KeyboardAvoidingView>
   </ScreenContainer>
 );
};
const styles = StyleSheet.create({
 containerYc: {
   marginTop: 32,
 },
 buttonDA: {
   height: 48,
 },
 keyboardAvoidingViewK8: {
   flexGrow: 1,
   justifyContent: 'space-between',
 },
 textFt: {
   textAlign: 'center',
 },
 textF2: {
   marginTop: 20,
   textAlign: 'center',
 },
 textOD: {
   width: '100%',
   marginTop: 16,
   textAlign: 'center',
 },
 textField4A: {
   height: 82,
   marginTop: 20,
 },
});
export default withTheme(REPLACE_SCREEN_NAME);

Screen Variants:

Additional Details

Changelog

No items found.

Request access to the private beta.