forked from cerc-io/laconic-wallet
Part of https://www.notion.so/WalletConnect-integration-84b2f7377d514d7ead698bebd84f1e31 - Update intent URL to https://wallet.laconic.com/ - Move navigation to index.js Co-authored-by: Adw8 <adwait@deepstacksoft.com> Reviewed-on: cerc-io/laconic-wallet#2
38 lines
971 B
JavaScript
38 lines
971 B
JavaScript
import React from 'react';
|
|
import 'text-encoding-polyfill';
|
|
import { AppRegistry } from 'react-native';
|
|
import { PaperProvider } from 'react-native-paper';
|
|
|
|
import { NavigationContainer } from '@react-navigation/native';
|
|
|
|
import App from './App';
|
|
import { AccountsProvider } from './context/AccountsContext';
|
|
import { RequestProvider } from './context/RequestContext';
|
|
import { name as appName } from './app.json';
|
|
|
|
export default function Main() {
|
|
const linking = {
|
|
prefixes: ['https://wallet.laconic.com'],
|
|
config: {
|
|
screens: {
|
|
SignRequest: {
|
|
path: 'sign/:network/:address/:message',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
return (
|
|
<PaperProvider>
|
|
<AccountsProvider>
|
|
<RequestProvider>
|
|
<NavigationContainer linking={linking}>
|
|
<App />
|
|
</NavigationContainer>
|
|
</RequestProvider>
|
|
</AccountsProvider>
|
|
</PaperProvider>
|
|
);
|
|
}
|
|
|
|
AppRegistry.registerComponent(appName, () => Main);
|