이 글의 성격은 무엇인가요?
질문 / 문제 해결
내용을 설명해주세요
제목
Granite RN 신규 프로젝트, 샌드박스 앱 실기기 연결 시 DefaultNavigationBar에서 Render Error (undefined is not a function)
환경
- @apps-in-toss/framework: 2.10.4 (최신)
- @granite-js/react-native: 1.0.34
- @granite-js/native: 1.0.34
- react-native: 0.84.0
- 테스트 기기: iOS 실기기 (샌드박스 앱 최신 버전, 업데이트 없음 확인함)
- granite.config.ts: navigationBar 관련 커스텀 설정 없음 (완전 기본값)
재현 방법
npm create granite-app으로 새 프로젝트 스캐폴드 (appName: mystery-pot)npx ait init으로 초기화,@toss/tds-react-native설치npm run dev로 Metro 개발 서버 실행- 샌드박스 앱에서 로컬 네트워크 권한 허용 → Metro 서버 설정에 개발 서버 IP 입력 → 저장
- 스킴
intoss://mystery-pot입력 후 “스키마 열기” - Bundling 진행 후 화면이 뜨기 전에 Render Error 발생
에러 내용
Render Error
undefined is not a function
Sources (index.cjs):
806 | // src/components/NavigationBar/RNNavigationBar...
807 | function useNavigationEvent() {
808 | const backEventContext = (0, import_react... ← 크래시 지점
809 | const logging = useNavigationBarLogging()
810 | const navigation = (0, import_react_native...
811 | const closeConfirm = useCloseConfirm();
1485 | function DefaultNavigationBar() {
1486 | const globals = getAppsInTossGlobals();
1487 | const { open: openMoreButtonBottomSheet } = ... ← 크래시 지점
1488 | const parsedNavigationBar = globals.navi...
Component Stack:
<DefaultNavigationBar /> dist/index.cjs:1487
<GeneralAppContainer /> dist/index.cjs:1578
<RNAppContainer />
이미 시도해본 것
- 샌드박스 앱 최신 버전 확인 (업데이트 없음)
- @apps-in-toss/framework, @granite-js/* 패키지를 npm 최신 버전으로 확인 (이미 최신)
- node_modules, package-lock.json 삭제 후 클린 재설치 → 동일 증상
- granite.config.ts의 icon URL 응답 확인 (200 OK, 문제 없음)
질문
- 이 크래시가 알려진 이슈인가요?
navigationBar설정을 넣지 않은 완전 기본 상태에서 발생하는데, 우회할 수 있는 설정값이 있을까요?- 혹시 알려진 워크어라운드(특정 프레임워크 버전 다운그레이드 등)가 있다면 안내 부탁드립니다.