initialRouteName=""
최초의 화면을 설정해 준다.
screenOption={{headerTintColor:"red", headerBackTitle: "뒤로"
presentation: "modal"
}}
presentation: "modal" 페이지 이동을할때마다 모달처럼 나오게됨
animation : "flip"
스크린이동을 하면 애니매이션을 구현할 수 있다.
<Stack.Screen options={{presentation:"modal"}}>
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
변수이름이 잘못 됬거나 path가 잘못되었다길래 변수와 폴더 파일이름을 다시한번 지우고 입력했더니 해결.
Error: A navigator can only contain 'Screen' components as its direct children
useFocuseEffect
useCallback이라는 함수를 받는다.
콜백과 디펜더시 어레이를 받는다.
reset메소드를 사용하면 언마운트를 할 수 있다.
npm 설치
<ThemeProvider theme={}>