Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

ErrorMessage.tsx

22 lines386 Bytes

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 );
15​
16const styles = StyleSheet.create({
17 fill: {
18 flex: 1,
19 justifyContent: 'center',
20 alignItems: 'center',
21 },
22});