일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- class component
- vuex
- ReactNative
- list
- elementAt
- animation
- AWS
- union
- Service
- MINUS
- mongoose
- collection
- recyclerview
- ConstraintLayout
- 생명주기
- react native
- Kotlin
- LiveData
- lifecycle
- docker-compose
- Generic
- Swift
- Filter
- Interface
- Foreign Key
- map
- enum
- CLASS
- function
- docker
- Today
- Total
목록Client/React Native (8)
개발 일기

해당 링크 참조 Flex Flex을 통해서 비율을 통해서 결정을 할수가 있습니다. 따라서 아래에 코드를 보면 flex을 통해서 비율을 정할수가 있습니다. import React, { Component } from 'react'; import { View } from 'react-native'; export default function FlexDimensionsBasics() { return ( // Try removing the `flex: 1` on the parent View. // The parent will not have dimensions, so the children can't expand. // What if you add `height: 300` instead of `flex: 1`? ..

화면 위에서 컴포넌트에 가로 세로 사이즈를 결정하는 방법에 대해서 설명하도록 하겠습니다. 제일 먼저 고정적으로 'width' or 'height'을 설정을 하는 방법이 있습니다. import React, { Component } from 'react'; import { View } from 'react-native'; export default function FixedDimensionsBasics() { return ( ); } Flex Dimensions 컴포넌트에 flex를 사용을 해서 동적으로 확장 및 비율에 따라서 정할수가 있습니다. import React, { Component } from 'react'; import { View } from 'react-native'; export defau..