Skip to content

Instantly share code, notes, and snippets.

@robinheinze
Last active April 8, 2021 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robinheinze/82f9f56c059193ddb711ce4a902ad053 to your computer and use it in GitHub Desktop.
Save robinheinze/82f9f56c059193ddb711ce4a902ad053 to your computer and use it in GitHub Desktop.
IgniteTrivia Question Screen initial
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