AndrewTHuang / react-native-locale-utils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-locale-utils

npm version

Locale utilities for React Native

Install

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

Automatically link

With React Native 0.27+

react-native link react-native-device-info

With older versions of React Native

You need rnpm (npm install -g rnpm)

rnpm link react-native-device-info

Usage

import LocaleUtils from 'react-native-locale-utils';
Name Method Return Notes
24 Hour format is24HourFormat() Boolean Returns if system time settings uses 12 hour or 24 hour system
Metric System usesMetricSystem() Boolean Returns if system locale uses metric system or not
Device Country Code deviceCountry() String Returns the two letter country code for the system

About


Languages

Language:Objective-C 42.2%Language:Java 27.3%Language:JavaScript 18.0%Language:Python 12.5%