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.

Camera Permissions

Permissions

Request access to the device camera.

Preview this Screen

Scan with your camera to preview on your phone:

Download Expo
Screen Code

-- CODE language-jsx --
import React from 'react';
import Images from '../config/Images';
import {
 Button,
 Container,
 ScreenContainer,
 Touchable,
 withTheme,
} from '@draftbit/ui';
import { Image, StatusBar, StyleSheet, Text } from 'react-native';
const REPLACE_SCREEN_NAME = props => {
 const { theme } = props;
 React.useEffect(() => {
   StatusBar.setBarStyle('dark-content');
 }, []);
 return (
   <ScreenContainer
     style={styles.screenContainer0Z}
     scrollable={false}
     hasSafeArea={true}
   >
     <Container elevation={0} useThemeGutterPadding={true} />
     <Container
       style={styles.container50}
       elevation={0}
       useThemeGutterPadding={true}
     >
       <Image
         style={styles.imageMq}
         source={Images.PermissionsCamera}
         resizeMode=""contain""
       />
       <Text
         style={StyleSheet.flatten([
           styles.textQy,
           theme.typography.headline4,
           { color: theme.colors.strong },
         ])}
       >
         Enable Camera
       </Text>
       <Text
         style={StyleSheet.flatten([
           styles.text7A,
           theme.typography.body1,
           { color: theme.colors.strong },
         ])}
       >
         We'll need this for taking photos, accessing the camera roll, or
         recording video.
       </Text>
     </Container>
     <Container
       style={styles.containerRr}
       elevation={0}
       useThemeGutterPadding={true}
     >
       <Touchable style={styles.touchableR1}>
         <Text
           style={StyleSheet.flatten([
             styles.textWh,
             theme.typography.button,
             { color: theme.colors.light },
           ])}
         >
           SKIP
         </Text>
       </Touchable>
       <Button style={styles.buttonHr} type=""solid"">
         ENABLE CAMERA
       </Button>
     </Container>
   </ScreenContainer>
 );
};
const styles = StyleSheet.create({
 screenContainer0Z: {
   justifyContent: 'space-between',
 },
 textWh: {
   height: 20,
   textAlign: 'center',
 },
 touchableR1: {
   marginBottom: 24,
 },
 imageMq: {
   width: 150,
   height: 150,
   marginBottom: 16,
 },
 container50: {
   alignItems: 'center',
 },
 buttonHr: {
   width: '100%',
   height: 48,
 },
 textQy: {
   textAlign: 'center',
 },
 containerRr: {
   marginBottom: 24,
 },
 text7A: {
   textAlign: 'center',
 },
});
export default withTheme(REPLACE_SCREEN_NAME);

Screen Variants:

Additional Details

Changelog

No items found.

Request access to the private beta.