Created
May 21, 2021 13:05
-
-
Save emmaodia/b0a84948685822c21c32a15b3a638aca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { StyleSheet, TouchableOpacity, View, LogBox, Button, Text } from 'react-native'; | |
import { RootStackParamList } from '../types'; | |
import { StackNavigationProp } from '@react-navigation/stack'; | |
type ProfileScreenNavigationProp = StackNavigationProp< | |
RootStackParamList, | |
'Root' | |
>; | |
type Props = { | |
navigation: ProfileScreenNavigationProp; | |
}; | |
export default function HomeScreen({navigation}: Props) { | |
// const alert = useSelector(state => state.alert) | |
return ( | |
<View style={styles.container}> | |
<Button | |
title='Connect Wallet' | |
onPress={() => navigation.navigate('AllProposalScreen')} | |
/> | |
<Text style={styles.text}> | |
Welcome to the Charity example DAO | |
</Text> | |
</View> | |
); | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: '#fff', | |
alignItems: 'center', | |
justifyContent: 'center', | |
padding: 20, | |
}, | |
text: { | |
paddingTop: 10, | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment