fix: fix banner image import path (#14)

This commit is contained in:
Victor Malov 2021-03-03 20:56:06 +03:00 committed by GitHub
parent 734c84579b
commit e54276aa68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import { Camera, CameraPermissionStatus } from 'react-native-vision-camera';
import { CONTENT_SPACING, SAFE_AREA_PADDING } from './Constants'; import { CONTENT_SPACING, SAFE_AREA_PADDING } from './Constants';
// eslint-disable-next-line @typescript-eslint/no-var-requires // eslint-disable-next-line @typescript-eslint/no-var-requires
const BANNER_IMAGE = require('../docs/static/img/11.png') as ImageRequireSource; const BANNER_IMAGE = require('../../docs/static/img/11.png') as ImageRequireSource;
export const Splash: NavigationFunctionComponent = ({ componentId }) => { export const Splash: NavigationFunctionComponent = ({ componentId }) => {
const [cameraPermissionStatus, setCameraPermissionStatus] = useState<CameraPermissionStatus>('not-determined'); const [cameraPermissionStatus, setCameraPermissionStatus] = useState<CameraPermissionStatus>('not-determined');