screens/WriteScreen.js
import React from 'react'; import {StyleSheet, View} from 'react-native'; import {SafeAreaView} from 'react-native-safe-area-context'; import WriteHeader from '../components/WriteHeader'; function () { return ( <SafeAreaView style={styles.block}> <WriteHeader /> </SafeAreaView> ); } const styles StyleSheet. ({ block: { flex: 1, backgroundColor: 'white', }, }); export default WriteScreen;