코드로 대화하기

  • 홈
  • 태그
  • 방명록

react native 2

React Native Navigation 스크린 이동

스크린 간 이동하는 방법과 데이터를 넘기는 방법을 다루겠습니다. 제 내비게이터 구조는 아래와 같습니다. Stack navigator Intro Tab navigator Home List Chat MyPage Intro -> Tab 같은 depths에 있는 intro에서 tab으로 이동하는 방법입니다. // intro.js import { useNavigation } from '@react-navigation/native'; ... const navigation = useNavigation(); // 함수 호출 시 탭으로 이동 const onPressMoveTab = () => { navigation.navigate( "Tab", {userName:"sjh"}, ); } navigate안에 스크린 이름과 ..

Front-end/React Native 2022.02.01

[React Native Error] Tried to register two views with the same name RNSScreenContainer

"Tried to register two views with the same name RNSScreenContainer" React Native에서 navigation 세팅하다가 위와 같은 오류가 있었는데요 서로 다른 버전의 패키지가 node_module에 설치되어 나는 오류라고 합니다. 저는 버전을 맞춰주기 위하여 "npm update"를 사용하였습니다. 참고 : https://github.com/software-mansion/react-native-screens/issues/15 Tried to register two views with the same name RNSScreen · Issue #15 · software-mansion/react-native-screens Getting the foll..

Front-end/React Native Error 2022.01.31
1
더보기
  • 전체글 (88)
    • Front-end (74)
      • 깊게 파고들기 (20)
      • React (6)
      • Recoil (2)
      • React Native (9)
      • React Native Error (7)
      • Nextjs (6)
      • Typescript (8)
      • JS tip (13)
      • Threejs (3)
    • Others (10)
      • Open Source (4)
      • Git (3)
      • ETC. (3)
    • 개발일지 (4)

Copyright © Kakao Corp. All rights reserved.

  • 깃허브

티스토리툴바