inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[리뉴얼] 맛집 지도앱 만들기 (React Native & NestJS)

colors[theme]을 아무리 시도해봐도 못읽어옵니다!

해결된 질문

218

김용민

작성한 질문수 74

0

캐시도 다 지워보고, 앱도 삭제해보고, 재설치도 해보고 해봤는데 원인을 모르겠네요...
강사님 코드로 바꿔넣어도, 동일하게 아래와 같은 에러가 발생합니다.

이유를 알고싶습니다..!!

ERROR  TypeError: Cannot read property 'PINK_700' of undefined

This error is located at:

    in CustomButton (created by AuthHomeScreen)

    in RCTView (created by View)

    in View (created by AuthHomeScreen)

    in RCTSafeAreaView (created by AuthHomeScreen)

    in AuthHomeScreen (created by SceneView)

    in StaticContainer

    in EnsureSingleNavigator (created by SceneView)

    in SceneView (created by CardContainer)

    in RCTView (created by View)

    in View (created by CardContainer)

    in RCTView (created by View)

    in View (created by CardContainer)

    in RCTView (created by View)

    in View

    in CardSheet (created by Card)

    in RCTView (created by View)

    in View (created by Animated(View))

    in Animated(View) (created by PanGestureHandler)

    in PanGestureHandler (created by PanGestureHandler)

    in PanGestureHandler (created by Card)

    in RCTView (created by View)

    in View (created by Animated(View))

    in Animated(View) (created by Card)

    in RCTView (created by View)

    in View (created by Card)

    in Card (created by CardContainer)

    in CardContainer (created by CardStack)

    in RNSScreen (created by Animated(Anonymous))

    in Animated(Anonymous) (created by InnerScreen)

    in Suspender (created by Freeze)

    in Suspense (created by Freeze)

    in Freeze (created by DelayedFreeze)

    in DelayedFreeze (created by InnerScreen)

    in InnerScreen (created by Screen)

    in Screen (created by MaybeScreen)

    in MaybeScreen (created by CardStack)

    in RNSScreenContainer (created by ScreenContainer)

    in ScreenContainer (created by MaybeScreenContainer)

    in MaybeScreenContainer (created by CardStack)

    in RCTView (created by View)

    in View (created by Background)

    in Background (created by CardStack)

    in CardStack (created by HeaderShownContext)

    in RNCSafeAreaProvider (created by SafeAreaProvider)

    in SafeAreaProvider (created by SafeAreaProviderCompat)

    in SafeAreaProviderCompat (created by StackView)

    in RCTView (created by View)

    in View (created by GestureHandlerRootView)

    in GestureHandlerRootView (created by StackView)

    in StackView (created by StackNavigator)

    in PreventRemoveProvider (created by NavigationContent)

    in NavigationContent

    in Unknown (created by StackNavigator)

    in StackNavigator (created by AuthStackNavigator)

    in AuthStackNavigator (created by RootNavigator)

    in RootNavigator (created by App)

    in EnsureSingleNavigator

    in BaseNavigationContainer

    in ThemeProvider

    in NavigationContainerInner (created by App)

    in _QueryClientProvider (created by App)

    in App

    in RCTView (created by View)

    in View (created by AppContainer)

    in RCTView (created by View)

    in View (created by AppContainer)

    in AppContainer

    in MatzipApp(RootComponent), js engine: hermes

 ERROR  TypeError: Cannot read property 'WHITE' of undefined

This error is located at:

    in RetryErrorBoundary (created by RootNavigator)

    in RootNavigator (created by App)

    in EnsureSingleNavigator

    in BaseNavigationContainer

    in ThemeProvider

    in NavigationContainerInner (created by App)

    in _QueryClientProvider (created by App)

    in App

    in RCTView (created by View)

    in View (created by AppContainer)

    in RCTView (created by View)

    in View (created by AppContainer)

    in AppContainer

    in MatzipApp(RootComponent), js engine: hermes

 ERROR  TypeError: Cannot read property 'WHITE' of undefined

This error is located at:

    in RetryErrorBoundary (created by RootNavigator)

    in RootNavigator (created by App)

    in EnsureSingleNavigator

    in BaseNavigationContainer

    in ThemeProvider

    in NavigationContainerInner (created by App)

    in _QueryClientProvider (created by App)

    in App

    in RCTView (created by View)

    in View (created by AppContainer)

    in RCTView (created by View)

    in View (created by AppContainer)

    in AppContainer

    in MatzipApp(RootComponent), js engine: hermes

react-native typescript nestjs react-query zustand

답변 2

0

ug928

index.tsx 를 이렇게 바꾸니까 되더라고요


import colors from './colors';

export { colors };

export * from './navigations';

 

0

Kyo

갑자기 상수를 못읽는 이유는 저도 알기가어렵습니다. 강의와 동일한 환경,코드로 해보셔야할것같아요.

react-native-screens 버전 호환 문제

2

153

1

안드로이드 실행 중 Drawer네비게이션과 MapView 성능 문제

0

103

2

해당 강의 부분은 실제 활용하기에 부족해 제가 해결한 방법입니다.

0

96

1

소스코드가 강의 순서랑 다른가요?

0

72

2

현재 Windows에서 VsCode로 작업 중인데 추후에 IOS도 가능하게 하려면

0

115

2

react-native-fast-image는 react 19 버전에서 설치가 안되나요?

0

209

2

SQL Shell의 역할이 무엇인가요?

0

91

1

혹시 해당 강의에서invalidateQueries를 사용한 이유가 있을까요?

0

79

2

빠르게 실행해보고싶습니다.

0

83

1

강의 수강 순서 관련

0

71

1

애뮬레이터 실행 방법

0

100

2

무료 Apple ID로 실기기 테스트 가능한가요?

0

90

2

ios 실기기 연결

0

70

2

npm run ios에러

0

74

1

10월 삭제 예정인 강의는 이유를 알 수 있을까요?

0

101

1

캘린더 개발 후에 navigation 에 대해서 궁금한 점이 있습니다.

0

51

1

안드로이드 위치 권한 이슈 2가지 문의

0

71

1

지도가 보이려면 음.. 작성해주신 스타일과 다르게

0

74

0

제대로 설치한거같은데 안드로이드랑 ios 둘다 앱실행이 안되는것같아요

0

83

3

강의 내용을 보면 전체적으로 function 함수 키워드를 사용하시는데

0

69

2

강의 3-9 에서 useGetRefreshToken 훅 안에 즉시 함수로 처리하는 이유가 궁금합니다!

0

82

2

사내에서 figma.com 업로드 안되나요?

0

96

1

AWS EC2 + RDS 설정

0

85

2

안드로이드 안켜집니다.

0

91

2