이제 WriteScreen 컴포넌트를 생성하고, RootStack에 등록해주세요.
screens/WriteScreen.tsx
import React from 'react'; import {View, StyleSheet} from 'react-native'; function () { return <View style={styles.block} />; } const styles StyleSheet. ({ block {}, }); export default WriteScreen;
screens/RootStack.tsx
(import WriteScreen from './WriteScreen'; const Stack <RootStackParamList>(); function () { (); return ( <Stack.Navigator screenOptions={{headerBackTitle '닫기'}}> (...) <Stack.Screen name="Write" component={WriteScreen} options={{title: '새 게시글 작성'}} /> </Stack.Navigator> ); } export default RootStack;)