Dahee's Solution Hub

  • 홈
  • 태그
  • 방명록

dimensions 1

[React Native] 휴대폰/시뮬레이터 화면의 총 가로/세로 길이를 알아내는 법! => Dimensions

Dimensions를 이용하면 화면의 총 가로 세로 길이를 알 수 있다. constants.jsimport {Dimensions} from 'react-native';const {width, height} = Dimensions.get('screen');export default {width, height};파일을 하나 만들어서 여러 컴포넌트에서 활용하자!   앱의 화면을 만들 때 View 의 세로 길이를 휴대폰 기종마다 같은 비율을 적용하고 싶다면import React from 'react';import constants from './constants';const Container = () => ( );이런식으로 활용 가능!

Solve Problem/React Native 2020.03.19
이전
1
다음
더보기
프로필사진

Dahee's Solution Hub

배운건 공유해야 진짜 내것이 된다!

  • 전체 (211)
    • Solve Problem (134)
      • Troubleshooting (38)
      • Guide | Tip (7)
      • Deep Dive (6)
      • React Native (65)
      • Android (14)
      • Deployment (4)
    • Study (65)
      • SAP ABAP (1)
      • Frontend (9)
      • Backend (3)
      • AWS (2)
      • Python (5)
      • GraphQL (6)
      • Algorithm (6)
      • Blockchain (8)
      • Django(멋쟁이사자처럼 7기 운영진) (25)
    • Archive (12)

Tag

react-native, custom sound, launch app, push-notification, 알고리즘, 리액트 네이티브 카메라, AppState, 리액트 네이티브 갤러리, react-native-camera, KeyboardAvoidingView, Android, CAMERA, 플로이드-와샬, getPhotos, 백준, ScrollView, 휴대폰 가로 세로, React Native, Python, dimensions,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/02   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바