Add instruction on project-wide properties (#305)

This commit is contained in:
Nicolas Charpentier 2019-03-26 15:02:28 -04:00 committed by GitHub
parent 7542963a52
commit e24b67a3ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 2 deletions

View File

@ -44,13 +44,30 @@ android {
}
```
4. Include the library in your code:
4. (Android only, optional)
If you've defined _[project-wide properties](https://developer.android.com/studio/build/gradle-tips.html)_ (**recommended**) in your root `build.gradle`, this library will detect the presence of the following properties:
```groovy
buildscript {...}
allprojects {...}
/**
+ Project-wide Gradle configuration properties
*/
ext {
compileSdkVersion = 27
targetSdkVersion = 27
buildToolsVersion = "27.0.3"
}
```
5. Include the library in your code:
```javascript
import { BlurView, VibrancyView } from "react-native-blur";
```
5. Compile and have fun!
6. Compile and have fun!
### BlurView