Update README.md

This commit is contained in:
Mathieu Acthernoene 2017-06-26 10:58:34 +02:00 committed by GitHub
parent 5971c0b478
commit 8924df3c7a

View File

@ -8,13 +8,16 @@ Integrates [I18n.js](https://github.com/fnando/i18n-js) with React Native. Uses
## Installation
**Using yarn ()**
`$ yarn add react-native-i18n`
**Using npm**
`$ npm install react-native-i18n --save`
**Using yarn**
`$ yarn add react-native-i18n`
NB: npm 5 currently has an issue resolving git sub-dependencies.
Check [this issue](https://github.com/AlexanderZaytsev/react-native-i18n/issues/101) for more informations.
## Automatic setup
@ -85,6 +88,8 @@ After that, you will need to recompile your project with `react-native run-andro
**Note: You'll need to install Android build tools 25.0.2**
![https://github.com/AlexanderZaytsev/react-native-i18n/blob/master/docs/android-install.png?raw=true]()
## Usage
```javascript
import I18n from 'react-native-i18n'