-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.tsx
31 lines (26 loc) · 886 Bytes
/
Home.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react';
import {SafeAreaView, View, StatusBar} from 'react-native';
import Logo from '../../components/Logo/Logo';
import InitButton from '../../components/InitButton/InitButton';
import {StackNavigationProp} from '@react-navigation/stack';
import {StackParamList} from '../../helpers/navigation';
import styles from './styles';
type HomeScreenNavigationProp = StackNavigationProp<StackParamList>;
type Props = {
navigation: HomeScreenNavigationProp;
};
const Home: React.FC<Props> = ({navigation}) => {
const goToSearch = () => {
navigation.navigate('Search');
};
return (
<SafeAreaView style={styles.safeAerea}>
<StatusBar backgroundColor="#eb636b" barStyle="light-content" />
<View style={styles.mainView}>
<Logo />
<InitButton onPress={goToSearch} />
</View>
</SafeAreaView>
);
};
export default Home;