Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Android
- npm
- 리액트
- array
- fragment
- SpringBoot
- JS
- 코틀린
- nodejs
- 오버라이딩
- Kotlin
- TextView
- GoogleMaps
- RecyclerView
- JavaScript
- 안드로이드
- Java
- button
- scrollview
- Linux
- Hook
- TypeScript
- 구글맵스
- React
- 랜덤넘버
- 스프링부트
- 자바스크립트
- Javscript
- stylesheet
- 랜덤번호
Archives
- Today
- Total
목록contprovider (1)
타닥타닥 개발자의 일상
react / TextProvider, useContext 통해서 다른 파일에 있는 값 화면에 구현하기
생성문 npx react-native init sample24 --template react-native-template-typescript 생성파일 src 폴더 생성 > 그 안에 component 폴더 생성 > component폴더안에 CountProvider, First, Second, Third, TextProvider 타입 스크립트 파일 생성 TextProvider.tsx import React, { createContext } from "react"; import { Text } from "react-native"; export const TextContext = createContext({}) interface Props{ children: JSX.Element } export default ..
코딩 기록/react
2022. 3. 9. 00:22