forked from EskinderAbera/E-Passbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
38 lines (38 loc) · 1.22 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React, { useEffect } from "react";
import { SafeAreaView } from "react-native-safe-area-context";
import RootStackScreen from "./navigation/RootStack";
import { ContextProvider } from "./Contexts/ContextProvider";
import { NativeBaseProvider } from "native-base";
import { Provider } from "react-redux";
import store from "./store";
import * as LocalAuthentication from "expo-local-authentication";
import * as SecureStore from "expo-secure-store";
export default function App() {
useEffect(() => {
const checkBiometric = async () => {
let result = await LocalAuthentication.hasHardwareAsync();
console.log("====================================");
console.log(result);
console.log("====================================");
if (result !== null) {
await SecureStore.setItemAsync("isBiometric", result.toString());
}
};
checkBiometric();
}, []);
return (
<ContextProvider>
<Provider store={store}>
<NativeBaseProvider>
{/* <SafeAreaView
style={{
flex: 1,
}}
> */}
<RootStackScreen />
{/* </SafeAreaView> */}
</NativeBaseProvider>
</Provider>
</ContextProvider>
);
}