귤죠아
Home
  • 분류 전체보기 (23) N
    • 🎡 (2)
    • FrontEnd (10)
      • HTML_CSS (0)
      • JS (1)
      • React (8)
    • Error (6)
    • Study (4)
    • 📒 Diary (1) N
Home
  • 분류 전체보기 (23) N
    • 🎡 (2)
    • FrontEnd (10)
      • HTML_CSS (0)
      • JS (1)
      • React (8)
    • Error (6)
    • Study (4)
    • 📒 Diary (1) N
블로그 내 검색
Github

귤죠아

귤을 좋아하는 프론트엔드 개발자

  • Error

    ERROR Warning: Text strings must be rendered within a <Text> component.

    2025. 6. 9.

    by. 귤죠아

    반응형

    에러 내용

    더보기

     ERROR  Warning: Text strings must be rendered within a <Text> component.

     

    에러 이유

    React Native의 인강과 현재 버전차이로 인해 기본 세팅도 해보는 중인데 이럴 거면 그냥 책사서 공부할 거 까비...

    무튼 Hook 코드에 왜 텍스트를 안감쌌다고 난리일까 싶었는데...

    하위 스크린 컴포넌트의 문제였다

     

    수정 방법

    역시.... 에러는 잘 읽어보면 답이 있다..

    자꾸 쉬운데서 에러 나는 거 스스로가 바보 같은 부분...

     

    index.tsx 파일에서 임의로 등록해둔 문구가 <Text> 컴포넌트로 묶이지 않아서 발생한 거였다

    <View style={styles.titleContainer}>
    	Fast 강의 이론 공부  
    </View>

    해결

    <View style={styles.titleContainer}>
      <Text>
        Fast 강의 이론 공부  
      </Text>
    </View>

     

    반응형

    'Error' 카테고리의 다른 글

    [React] cross-env: command not found  (0) 2023.03.28
    [React] Warning: Each child in a list should have a unique "key" prop.  (0) 2022.11.09
    [React] Warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.  (0) 2022.11.08
    [파일질라] 서버 연결 실패 오류  (2) 2022.11.07
    [React] Warning: validateDOMNesting(...): div cannot appear as a child of table.  (0) 2022.11.07

    댓글

    관련글

    • [React] cross-env: command not found 2023.03.28
    • [React] Warning: Each child in a list should have a unique "key" prop. 2022.11.09
    • [React] Warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`. 2022.11.08
    • [파일질라] 서버 연결 실패 오류 2022.11.07
    맨 위로
전체 글 보기
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

Today

Total

Powered by ⓒ Kakao Corp.

Designed by Nana
블로그 이미지
귤죠아

티스토리툴바