1- import React , { useEffect } from 'react' ;
2- import { ActivityIndicator , StyleSheet , View } from 'react-native' ;
3- import { createNativeStackNavigator } from '@react-navigation/native-stack' ;
4- import { NavigationContainer } from '@react-navigation/native' ;
1+ import React , { useEffect } from 'react' ;
2+ import { ActivityIndicator , StyleSheet , View } from 'react-native' ;
3+ import { createNativeStackNavigator } from '@react-navigation/native-stack' ;
4+ import { NavigationContainer } from '@react-navigation/native' ;
55import {
66 ActivityIndicatorContext ,
77 BarcodeDocumentFormatContext ,
@@ -10,14 +10,14 @@ import {
1010 useBarcodeFormats ,
1111 useLoading ,
1212} from '@context' ;
13- import { COLORS , NavigationTheme } from '@theme' ;
14- import { FILE_ENCRYPTION_ENABLED , Screens , ScreenTitles } from '@utils' ;
15- import { BarcodeDocumentFormatsScreen } from './src/screens/BarcodeDocumentFormatsScreen' ;
16- import { BarcodeCameraViewScreen } from './src/screens/BarcodeCameraViewScreen' ;
17- import { BarcodeFormatsScreen } from './src/screens/BarcodeFormatsScreen' ;
18- import { HomeScreen } from './src/screens/HomeScreen' ;
19- import { ImageResultsScreen } from './src/screens/ImageResultsScreen' ;
20- import { BarcodeResultsScreen } from './src/screens/BarcodeResultsScreen' ;
13+ import { COLORS , NavigationTheme } from '@theme' ;
14+ import { FILE_ENCRYPTION_ENABLED , Screens , ScreenTitles } from '@utils' ;
15+ import { BarcodeDocumentFormatsScreen } from './src/screens/BarcodeDocumentFormatsScreen' ;
16+ import { BarcodeCameraViewScreen } from './src/screens/BarcodeCameraViewScreen' ;
17+ import { BarcodeFormatsScreen } from './src/screens/BarcodeFormatsScreen' ;
18+ import { HomeScreen } from './src/screens/HomeScreen' ;
19+ import { ImageResultsScreen } from './src/screens/ImageResultsScreen' ;
20+ import { BarcodeResultsScreen } from './src/screens/BarcodeResultsScreen' ;
2121
2222import ScanbotBarcodeSDK , {
2323 ScanbotBarcodeSdkConfiguration ,
@@ -75,13 +75,14 @@ export default function App() {
7575 < View style = { styles . container } >
7676 < BarcodeDocumentFormatContext . Provider value = { barcodeDocumentFormatsValues } >
7777 < BarcodeFormatsContext . Provider value = { barcodeFormatsValues } >
78- < ActivityIndicatorContext . Provider value = { { setLoading} } >
78+ < ActivityIndicatorContext . Provider value = { { setLoading } } >
7979 < NavigationContainer theme = { NavigationTheme } >
8080 < Stack . Navigator
8181 screenOptions = { navigation => ( {
8282 title : ScreenTitles [ navigation . route . name as Screens ] ,
8383 headerBackTitleVisible : false ,
84- } ) } >
84+ } ) }
85+ >
8586 < Stack . Screen name = { Screens . HOME } component = { HomeScreen } />
8687 < Stack . Screen name = { Screens . BARCODE_FORMATS } component = { BarcodeFormatsScreen } />
8788 < Stack . Screen
0 commit comments