Skip to content

Commit 070404a

Browse files
committed
add version app number
1 parent fe88fe0 commit 070404a

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"settings": {
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
5+
"editor.codeActionsOnSave": {
6+
"source.fixAll.eslint": true
7+
}
8+
}
9+
}

hackathon/spacecraft/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"babel-jest": "^29.5.0",
3737
"deepmerge": "^4.3.1",
3838
"expo": "^49.0.5",
39+
"expo-application": "~5.3.0",
3940
"expo-constants": "~14.4.2",
4041
"expo-image": "~1.3.2",
4142
"expo-linking": "~5.0.2",
Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
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";
35

46
import { ScreenContainer } from "~/components/ScreenContainer";
57
import { Routes } from "~/navigation/Routes";
@@ -13,11 +15,25 @@ export const PlusScreen = ({ navigation }: Props) => {
1315

1416
return (
1517
<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>
2137
</ScreenContainer>
2238
);
2339
};

0 commit comments

Comments
 (0)