Last active
April 8, 2021 17:25
-
-
Save robinheinze/82f9f56c059193ddb711ce4a902ad053 to your computer and use it in GitHub Desktop.
IgniteTrivia Question Screen initial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import { observer } from "mobx-react-lite" | |
import { View, ViewStyle } from "react-native" | |
import { Screen, Text } from "../../components" | |
// import { useNavigation } from "@react-navigation/native" | |
// import { useStores } from "../../models" | |
import { color, spacing } from "../../theme" | |
const ROOT: ViewStyle = { | |
flex: 1, | |
backgroundColor: color.background, | |
paddingHorizontal: spacing.large, | |
} | |
const HEADER_CONTAINER: ViewStyle = { | |
marginTop: spacing.huge, | |
marginBottom: spacing.medium, | |
} | |
export const QuestionScreen = observer(function QuestionScreen() { | |
// Pull in one of our MST stores | |
// const { someStore, anotherStore } = useStores() | |
// Pull in navigation via hook | |
// const navigation = useNavigation() | |
return ( | |
<Screen style={ROOT} preset="scroll"> | |
<View style={HEADER_CONTAINER}> | |
<Text preset="header" tx="questionScreen.header" /> | |
</View> | |
</Screen> | |
) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment