본문 바로가기

React-Native

[j React-Native] Platform & DeviceInfo 정보 가져오기

728x90
반응형

1. Platform 정보

import {
  Platform,
  View,
} from 'react-native';

Platform.OS -> ios or android

Platform.Version -> version

 

 

2. DeviceInfo

 

- 설치

npm install --save react-native-device-info

or using yarn:

 

728x90
반응형