Skip to content

Commit e24b67a

Browse files
authored
Add instruction on project-wide properties (#305)
1 parent 7542963 commit e24b67a

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,30 @@ android {
4444
}
4545
```
4646

47-
4. Include the library in your code:
47+
4. (Android only, optional)
48+
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:
49+
50+
```groovy
51+
buildscript {...}
52+
allprojects {...}
53+
54+
/**
55+
+ Project-wide Gradle configuration properties
56+
*/
57+
ext {
58+
compileSdkVersion = 27
59+
targetSdkVersion = 27
60+
buildToolsVersion = "27.0.3"
61+
}
62+
```
63+
64+
5. Include the library in your code:
4865

4966
```javascript
5067
import { BlurView, VibrancyView } from "react-native-blur";
5168
```
5269

53-
5. Compile and have fun!
70+
6. Compile and have fun!
5471

5572
### BlurView
5673

0 commit comments

Comments
 (0)