Skip to content

Instantly share code, notes, and snippets.

@emmaodia
Created May 21, 2021 13:05
Show Gist options
  • Save emmaodia/b0a84948685822c21c32a15b3a638aca to your computer and use it in GitHub Desktop.
Save emmaodia/b0a84948685822c21c32a15b3a638aca to your computer and use it in GitHub Desktop.
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