내배캠 64일차

라형선·2023년 1월 4일
0

initialRouteName=""
최초의 화면을 설정해 준다.

screenOption={{headerTintColor:"red", headerBackTitle: "뒤로"
presentation: "modal"
}}

presentation: "modal" 페이지 이동을할때마다 모달처럼 나오게됨

animation : "flip"
스크린이동을 하면 애니매이션을 구현할 수 있다.

네비게이션이 아니라 screen에 옵션을 주려면 어떻게할까?

<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메소드를 사용하면 언마운트를 할 수 있다.

emotion 라이브러리

npm 설치

<ThemeProvider theme={}>
profile
형선

0개의 댓글

관련 채용 정보