커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
추가 질문입니다. (내일 낮에 확인할게요;;)
[왕초보] 나만의 수익성 앱, 앱개발 종합반 v5
5주차
북마크
김*정
댓글
3
추천
0
조회수
17
조회수
17
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


얘기해주신대로 싹 다 바꾸고

<MyText style={styles.cardTitle} numberOfLines={1} children={content.title}/>

스타일은

<MyTextComponent style={styles.cardTitle} numberOfLines={1}>{content.title}</MyTextComponent>

로도 바꿨어요.



스파르타 즉문즉답




작성한 코드 및 에러 메세지


Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.


Check the render method of `MyTextComponent`.


This error is located at:

  in MyTextComponent (created by Loading)

  in RCTView (created by View)

  in View (created by Loading)

  in Loading (created by MainPage)

  in MainPage (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 AnimatedComponent)

  in AnimatedComponent

  in AnimatedComponentWrapper (created by PanGestureHandler)

  in PanGestureHandler (created by PanGestureHandler)

  in PanGestureHandler (created by Card)

  in RCTView (created by View)

  in View (created by AnimatedComponent)

  in AnimatedComponent

  in AnimatedComponentWrapper (created by Card)

  in RCTView (created by View)

  in View (created by Card)

  in View (created by AppContainer)

  in RCTView (created by View)

  in View (created by AppContainer)

  in AppContainer

  in main(RootComponent)

at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in reportException

at node_modules\react-native\Libraries\Core\ExceptionsManager.js:null in handleException

at node_modules\react-native\Libraries\Core\setUpErrorHandling.js:null in handleError

at node_modules\expo\build\errors\ExpoErrorManager.js:null in errorHandler

at node_modules\expo\build\errors\ExpoErrorManager.js:null in <anonymous>

at node_modules\@react-native\polyfills\error-guard.js:null in ErrorUtils.reportFatalError

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard

at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in callFunctionReturnFlushedQueue


오류입니다.


취소
 공유
취소
댓글 0
댓글 알림
나의얼굴