-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (32 loc) · 1.02 KB
/
App.js
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
import * as React from "react";
import { View, StyleSheet, StatusBar, Platform } from "react-native";
import Constants from "expo-constants";
import { AppName } from "./components/AppName.js";
import { Grid } from "./components/Grid.js";
import { NonogramGameProvider } from "./nonogramGame/NonogramGameContext.js";
import { CheckGridButton } from "./components/CheckGridButton.js";
import { NonogramPicker } from "./components/NonogramPicker.js";
import { Spacer } from "./components/Spacer.js";
export default function App() {
return (
<NonogramGameProvider>
<StatusBar
barStyle={Platform.OS === "ios" ? "dark-content" : "light-content"}
/>
<View style={styles.container}>
<AppName />
<NonogramPicker />
<Spacer height={20} />
<Grid />
<Spacer height={20} />
<CheckGridButton />
</View>
</NonogramGameProvider>
);
}
const styles = StyleSheet.create({
container: {
paddingTop: Constants.statusBarHeight,
paddingHorizontal: 8,
},
});