2024-07-25 07:30:03 +00:00
|
|
|
import React from 'react';
|
|
|
|
import ReactDOM from 'react-dom/client';
|
|
|
|
import { PaperProvider, MD3LightTheme as DefaultTheme, } from 'react-native-paper';
|
|
|
|
import { NavigationContainer } from '@react-navigation/native';
|
|
|
|
import { Platform } from 'react-native';
|
2024-07-26 04:58:57 +00:00
|
|
|
import { Buffer } from 'buffer';
|
2024-07-25 07:30:03 +00:00
|
|
|
|
|
|
|
import './index.css';
|
|
|
|
import App from './App';
|
|
|
|
import { AccountsProvider } from './context/AccountsContext';
|
|
|
|
import { NetworksProvider } from './context/NetworksContext';
|
|
|
|
import reportWebVitals from './reportWebVitals';
|
|
|
|
import { WalletConnectProvider } from './context/WalletConnectContext';
|
|
|
|
|
2024-07-26 04:58:57 +00:00
|
|
|
globalThis.Buffer = Buffer;
|
2024-07-25 07:30:03 +00:00
|
|
|
|
|
|
|
const linking = {
|
2024-08-01 06:18:02 +00:00
|
|
|
prefixes: ['https://wallet.laconic.com']
|
2024-07-25 07:30:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const theme = {
|
|
|
|
...DefaultTheme,
|
|
|
|
dark: false,
|
|
|
|
};
|
|
|
|
|
|
|
|
const root = ReactDOM.createRoot(
|
|
|
|
document.getElementById('root') as HTMLElement
|
|
|
|
);
|
|
|
|
root.render(
|
|
|
|
<PaperProvider theme={theme}>
|
|
|
|
<NetworksProvider>
|
|
|
|
<AccountsProvider>
|
|
|
|
<WalletConnectProvider>
|
2024-07-29 11:26:10 +00:00
|
|
|
<NavigationContainer
|
|
|
|
linking={linking}
|
|
|
|
documentTitle={{
|
|
|
|
formatter: () =>
|
|
|
|
`Laconic Wallet`,
|
|
|
|
}}
|
|
|
|
>
|
2024-07-25 07:30:03 +00:00
|
|
|
<React.Fragment>
|
|
|
|
{Platform.OS === 'web' ? (
|
|
|
|
<style type="text/css">{`
|
|
|
|
@font-face {
|
|
|
|
font-family: 'MaterialCommunityIcons';
|
|
|
|
src: url(${require('react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf')}) format('truetype');
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
) : null}
|
|
|
|
<App />
|
|
|
|
</React.Fragment>
|
|
|
|
</NavigationContainer>
|
|
|
|
</WalletConnectProvider>
|
|
|
|
</AccountsProvider>
|
|
|
|
</NetworksProvider>
|
|
|
|
</PaperProvider>
|
|
|
|
);
|
|
|
|
|
|
|
|
// If you want to start measuring performance in your app, pass a function
|
|
|
|
// to log results (for example: reportWebVitals(console.log))
|
|
|
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
|
|
reportWebVitals();
|