Merge pull request #360 from kontist/renderscript-support-library-remains

Remove RenderScript Support Library remains
This commit is contained in:
Mikael Sand 2020-04-08 14:45:33 +03:00 committed by GitHub
commit 9b5ffd1496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 24 deletions

View File

@ -41,23 +41,7 @@ cd ios
pod install
```
4. (Android only) Add the following to `android/app/build.gradle`
```
android {
// make sure to use 23.0.3 or greater
buildToolsVersion '23.0.3'
// ...
defaultConfig {
// Add these lines below the existing config
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
}
}
```
5. (Android only, optional)
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
@ -74,13 +58,13 @@ ext {
}
```
6. Include the library in your code:
5. Include the library in your code:
```javascript
import { BlurView, VibrancyView } from "@react-native-community/blur";
```
7. Compile and have fun!
6. Compile and have fun!
### BlurView

View File

@ -29,9 +29,6 @@ android {
targetSdkVersion safeExtGet('targetSdkVersion', 28)
versionCode 1
versionName "1.0"
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
}
lintOptions {
abortOnError false

View File

@ -107,8 +107,6 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
}
splits {
abi {