about summary refs log tree commit diff
path: root/src/view/screens/NotFound.tsx
blob: 79477fa9bf4bf8faa2376aec2bc332becada690b (plain) (blame)
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
import React from 'react'
import {Button, View} from 'react-native'
import {ViewHeader} from '../com/util/ViewHeader'
import {Text} from '../com/util/text/Text'
import {useStores} from '../../state'

export const NotFound = () => {
  const stores = useStores()
  return (
    <View testID="notFoundView">
      <ViewHeader title="Page not found" />
      <View
        style={{
          justifyContent: 'center',
          alignItems: 'center',
          paddingTop: 100,
        }}>
        <Text style={{fontSize: 40, fontWeight: 'bold'}}>Page not found</Text>
        <Button
          testID="navigateHomeButton"
          title="Home"
          onPress={() => stores.nav.navigate('/')}
        />
      </View>
    </View>
  )
}