Open History to see the last commit
1import React from 'react';
2import { Text, View, StyleSheet } from 'react-native';
3β
4type Props = {
5 message: string;
6};
7β
8export function ErrorMessage({ message }: Props) {
9 return (
10 <View style={styles.fill}>
11 <Text>{message}</Text>
12 </View>
13 );
14}
15β
16const styles = StyleSheet.create({
17 fill: {
18 flex: 1,
19 justifyContent: 'center',
20 alignItems: 'center',
21 },
22});