-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
39 lines (35 loc) · 1018 Bytes
/
App.tsx
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
39
import React, {useState} from 'react';
import {DefaultTheme, Provider as PaperProvider} from 'react-native-paper';
import AgentProvider from "@aries-framework/react-hooks";
import Providers from './src/navigation';
import PolyfillCrypto from 'react-native-webview-crypto';
export default function App() {
console.log("app - setting up providers")
const [agent, setAgent] = useState(undefined);
// const initializeAgent = async () => {
// await // initialize your agent
// setAgent(yourAgent)
// }
//
// useEffect(() => {
// initializeAgent()
// }, [])
return (
<AgentProvider agent={agent}>
<PolyfillCrypto />
<PaperProvider theme={theme}>
<Providers/>
</PaperProvider>
</AgentProvider>
)
}
const theme = {
...DefaultTheme,
roundness: 2,
colors: {
...DefaultTheme.colors,
primary: '#e69138',
accent: '#b0bf93',
background: '#f9f9f9',
},
};