forked from cerc-io/laconic-wallet
* Store mnemonic and private key seperately * Change variable names * Refactor code in seperate components * Display wallet details * Remove unnecessary imports * Make review changes * Add method to reset wallet * Make component self closing * separate imports --------- Co-authored-by: Adw8 <adwait@deepstacksoft.com>
24 lines
527 B
TypeScript
24 lines
527 B
TypeScript
import React from 'react';
|
|
import { View, Text, useColorScheme } from 'react-native';
|
|
import { Colors } from 'react-native/Libraries/NewAppScreen';
|
|
|
|
import styles from '../styles/stylesheet';
|
|
|
|
const Header = () => {
|
|
const isDarkMode = useColorScheme() === 'dark';
|
|
|
|
return (
|
|
<View style={styles.headerContainer}>
|
|
<Text
|
|
style={[
|
|
styles.headerText,
|
|
{color: isDarkMode ? Colors.light : Colors.dark},
|
|
]}>
|
|
Laconic Wallet
|
|
</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
export { Header };
|