about summary refs log tree commit diff
path: root/src/view/screens/NotFound.tsx
blob: 2483da1e6218a1e0f5642666bf2712ee266534c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import React from 'react'
import {Text, Button, View} from 'react-native'
import {useStores} from '../../state'

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