laconic-wallet/App.tsx
Adwait Gharpure 9ab3148aa9
Show account data specific to selected network (#11)
* Add state for selected network

* Make review changes

* Add cosmos signature

* Explicit check for cosmos

* Add dummy method for generating wallet

* Remove logic from component

* Add dummy sign method

* Change network state values

* Use separate file for types

* Add default case to switch

* Use consistent method names

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-14 13:45:02 +05:30

32 lines
850 B
TypeScript

import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import SignMessage from './components/SignMessage';
import { HomeScreen } from './components/HomeScreen';
import { StackParamsList } from './types';
const Stack = createNativeStackNavigator<StackParamsList>();
const App = (): React.JSX.Element => {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Laconic" component={HomeScreen} />
<Stack.Screen
name="SignMessage"
component={SignMessage}
options={{
title: 'Sign Message',
}}
initialParams={{ selectedNetwork: 'Ethereum' }}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;