text: import React from 'react';
  import PropTypes from 'prop-types';
  import { View, StyleSheet, Text } from 'react-native';
  
  const Error = ({ message }) => (
    <View style={styles.container}>
      <Text>{message}</Text>
    </View>
  );
  
  Error.propTypes = {
    message: PropTypes.string.isRequired
  };
  
  const styles = StyleSheet.create({
    container: {
      flex: 1,
      justifyContent: 'center',
      alignItems: 'center'
    }
  });
  
  export { Error };
  