mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-01-28 01:05:18 +00:00
Update README with required steps on Android
This commit is contained in:
parent
a0802c0e99
commit
94a7d002e5
26
README.md
26
README.md
@ -28,7 +28,16 @@ Check the [roadmap here](https://github.com/Kureev/react-native-blur/issues/1)
|
||||
3. (Android only) Add the following to your `android/app/build.gradle`
|
||||
|
||||
`android/build.gradle`
|
||||
```
|
||||
```
|
||||
buildscript {
|
||||
dependencies {
|
||||
// Update "Android Plugin for Gradle" version
|
||||
classpath 'com.android.tools.build:gradle:2.2.3'
|
||||
}
|
||||
}
|
||||
|
||||
// ...
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' }
|
||||
@ -41,6 +50,21 @@ Check the [roadmap here](https://github.com/Kureev/react-native-blur/issues/1)
|
||||
dependencies {
|
||||
compile 'com.fivehundredpx:blurringview:1.0.0'
|
||||
}
|
||||
|
||||
|
||||
android {
|
||||
defaultConfig {
|
||||
// Add these to the existing config
|
||||
renderscriptTargetApi 23
|
||||
renderscriptSupportModeEnabled true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
`android/gradle/wrapper/gradle-wrapper.properties`
|
||||
```
|
||||
// Update Gradle version
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
|
||||
```
|
||||
|
||||
4. Inside your code include JS part by adding
|
||||
|
Loading…
x
Reference in New Issue
Block a user