Fix readme (#45)

* fix install guide

* install guide < 0.29.2

* remove android settings.gradle
This commit is contained in:
Lam Ng 2016-09-16 22:51:06 +07:00 committed by Florian Rival
parent bf82709719
commit 8bb52ccf8d
1 changed files with 12 additions and 1 deletions

View File

@ -4,12 +4,23 @@ A React Native module that can create scaled versions of local images (also supp
## Setup ## Setup
Install the package with [rnpm](https://github.com/rnpm/rnpm): Install the package:
React-Native 0.29.2+
```
npm install --save react-native-image-resizer
react-native link react-native-image-resizer
```
React-Native < 0.29.2
``` ```
npm install rnpm -g npm install rnpm -g
rnpm install react-native-image-resizer rnpm install react-native-image-resizer
``` ```
### Android
Note: on latest versions of React Native, you may have an error during the Gradle build on Android (`com.android.dex.DexException: Multiple dex files define Landroid/support/v7/appcompat/R$anim`). Run `cd android && ./gradlew clean` to fix this. Note: on latest versions of React Native, you may have an error during the Gradle build on Android (`com.android.dex.DexException: Multiple dex files define Landroid/support/v7/appcompat/R$anim`). Run `cd android && ./gradlew clean` to fix this.
## Usage example ## Usage example