File tree Expand file tree Collapse file tree 3 files changed +32
-6
lines changed Expand file tree Collapse file tree 3 files changed +32
-6
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "settings" : {
3
+ "editor.formatOnSave" : true ,
4
+ "editor.defaultFormatter" : " dbaeumer.vscode-eslint" ,
5
+ "editor.codeActionsOnSave" : {
6
+ "source.fixAll.eslint" : true
7
+ }
8
+ }
9
+ }
Original file line number Diff line number Diff line change 36
36
"babel-jest" : " ^29.5.0" ,
37
37
"deepmerge" : " ^4.3.1" ,
38
38
"expo" : " ^49.0.5" ,
39
+ "expo-application" : " ~5.3.0" ,
39
40
"expo-constants" : " ~14.4.2" ,
40
41
"expo-image" : " ~1.3.2" ,
41
42
"expo-linking" : " ~5.0.2" ,
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
- import { List } from "react-native-paper" ;
2
+ import { List , Text } from "react-native-paper" ;
3
+ import * as Application from "expo-application" ;
4
+ import { View } from "react-native" ;
3
5
4
6
import { ScreenContainer } from "~/components/ScreenContainer" ;
5
7
import { Routes } from "~/navigation/Routes" ;
@@ -13,11 +15,25 @@ export const PlusScreen = ({ navigation }: Props) => {
13
15
14
16
return (
15
17
< ScreenContainer title = { "Plus" } >
16
- < List . Item
17
- title = "Do you like Spacecraft?"
18
- onPress = { navigateToDoYouLikeScreen }
19
- left = { ( props ) => < List . Icon { ...props } icon = "star" /> }
20
- />
18
+ < View style = { { flex : 1 } } >
19
+ < List . Item
20
+ title = "Do you like Spacecraft?"
21
+ onPress = { navigateToDoYouLikeScreen }
22
+ left = { ( props ) => < List . Icon { ...props } icon = "star" /> }
23
+ />
24
+ </ View >
25
+ < View
26
+ style = { {
27
+ alignItems : "center" ,
28
+ justifyContent : "center" ,
29
+ marginBottom : 24 ,
30
+ } }
31
+ >
32
+ < Text variant = "bodySmall" > Built in France by David Leuliette</ Text >
33
+ < Text variant = "bodySmall" >
34
+ { Application . applicationName } { Application . nativeBuildVersion }
35
+ </ Text >
36
+ </ View >
21
37
</ ScreenContainer >
22
38
) ;
23
39
} ;
You can’t perform that action at this time.
0 commit comments