react-native
-
<react-native>view 컴포넌트와 css 박스 모델/자원과 아이콘 사용하기app/react-native 2022. 4. 11. 12:55
react-native-paper color 패키지 먼저 설치 npm i react-native-vector-icons react-native-paper color npm i -D @types/color app.tsx import React from 'react' import {Platform, Dimensions, StyleSheet, SafeAreaView, Text} from 'react-native' import {Colors} from 'react-native-paper' import color from 'color' const {width, height} = Dimensions.get('window') export default function App() { return ( os: {Platf..
-
<react-native> faker / error 확인app/react-native 2022. 4. 9. 18:01
가짜 데이터 만들기 우선, faker 설치 npm i faker npm i -D @types/faker 그 후 디렉토리 설정 mkdir src cd src cd data touch index.ts IPerson.ts faker.ts util.ts createRandomPerson.ts cd ../.. app.tsx import React from "react"; import { SafeAreaView, Text } from "react-native"; import * as D from './src/data' const person = D.createRandomPerson() export default function App() { return ( {JSON.stringify(person, null, 2)..