-
Notifications
You must be signed in to change notification settings - Fork 0
/
App copy 2.tsx
67 lines (51 loc) · 2.24 KB
/
App copy 2.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import React, { Component } from 'react';
import * as React from 'react';
import { ColorSchemeName, Pressable, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import { DarkTheme, DefaultTheme, NavigationContainer } from '@react-navigation/native';
import { Feather, Ionicons, MaterialCommunityIcons } from '@expo/vector-icons';
import { RootStackParamList, RootTabParamList, RootTabScreenProps } from '../types';
import { LogBox } from 'react-native';
import Navigation from './navigation';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { StatusBar } from 'expo-status-bar';
import useCachedResources from './hooks/useCachedResources';
import useColorScheme from './hooks/useColorScheme';
import { useEffect } from 'react';
import { useNavigation } from '@react-navigation/native';
import PropTypes from 'prop-types';
import Logo from './components/Auth/components/Logo';
import Form from './components/Auth/components/Form';
import Wallpaper from './components/Auth/components/Wallpaper';
import ButtonSubmit from './components/Auth/ButtonSubmit';
import SignupSection from './components/Auth/components/SignupSection';
class LoginScreen extends Component {
render() {
return (
<SafeAreaProvider>
<Navigation colorScheme={this.props.colorScheme} />
<Wallpaper>
<Logo />
<Form />
<SignupSection />
<ButtonSubmit />
</Wallpaper>
</SafeAreaProvider>
);
}
}
// Wrap and export
export default function (props) {
const navigation = useNavigation();
const isLoadingComplete = useCachedResources();
const colorScheme = useColorScheme();
useEffect(() => {
LogBox.ignoreLogs(["VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing and other functionality - use another VirtualizedList-backed container instead."])
}, []);
useEffect(() => {
LogBox.ignoreLogs(["VirtualizedLists should never be nested"])
}, []);
LogBox.ignoreLogs([
"[react-native-gesture-handler] Seems like you\'re using an old API with gesture components, check out new Gestures system!",
]);
return <LoginScreen {...props} navigation={navigation} colorScheme={colorScheme} />;
}