Update README.md

This commit is contained in:
Matteo Mazzarolo 2017-01-26 10:23:37 +01:00 committed by GitHub
parent a6ae286347
commit 178edc15d1
1 changed files with 4 additions and 2 deletions

View File

@ -4,9 +4,11 @@ Integrates [I18n.js](https://github.com/fnando/i18n-js) with React Native. Uses
<br/>
<br/>
## Installation
If you're on react-native >= 0.40: `$ npm install react-native-i18n --save`
If you're on react-native < 0.40: `$ npm install react-native-i18n@0.1.1 --save`
## Automatic setup
`$ npm install react-native-i18n --save`
After installing the npm package you need to link the native modules.
If you're using React-Native < 0.29 install [rnpm](https://github.com/rnpm/rnpm) with the command `npm install -g rnpm` and then link the library with the command `rnpm link`.
If you're using React-Native >= 0.29 just link the library with the command `react-native link`.