-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathApp.js
More file actions
57 lines (50 loc) · 1.92 KB
/
Copy pathApp.js
File metadata and controls
57 lines (50 loc) · 1.92 KB
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
// import React, { useRef } from 'react'
// import { StatusBar } from 'expo-status-bar'
// import { ScrollView, StyleSheet, Text, View, Button } from 'react-native'
// import Input from './components/Input'
// import Spacer from './components/Spacer'
// import ScreenContainer from './components/ScreenContainer'
// import { layoutStyles } from './styles/Layout'
// export default function App() {
// const passwordInput = useRef() // ci serve per fare focus sull'input in cui la applichiamo
// return (
// <ScreenContainer style={layoutStyles.container}>
// <StatusBar backgroundColor="transparent" />
// <ScrollView
// keyboardShouldPersistTaps="handled" // fa fare blur all'input in focus quando si clicca su altre parti della schermata
// >
// <Spacer size={10} />
// <Input
// label="Username"
// onSubmitEditing={() => {
// passwordInput.current.focus() // quando si fa "invio" sulla tastiera il focus viene spostato all'input successivo
// }}
// blurOnSubmit={false} // serve a non far chiudere la tastiera quando si fa focus tramite passwordInput.current.focus()
// />
// <Spacer size={4} />
// <Input label="Password" isPassword ref={passwordInput} />
// </ScrollView>
// </ScreenContainer>
// )
// }
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// backgroundColor: '#fff'
// },
// })
import React, { createRef } from 'react'
import { NavigationContainer } from '@react-navigation/native'
import AuthProvider from './contexts/AuthContext'
import AppNavigator from './navigators/AppNavigator'
import { rootNavigation } from './Utility/navigation.js'
import Providers from "./contexts/Providers.js"
import Screens from "./screens/Screens.js"
//export const rootNavigation = createRef()
export default function App() {
return (
<Providers>
<Screens/>
</Providers>
)
}