File size: 385 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import * as React from 'react'
import { StyleSheet, Text, View } from 'react-native'

type Props = {
  message: string
}

export function ErrorMessage({ message }: Props) {
  return (
    <View style={styles.fill}>
      <Text>{message}</Text>
    </View>
  )
}

const styles = StyleSheet.create({
  fill: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
})