Skip to content

Patch file for RN 0.65.+ #444

@kanzitelli

Description

@kanzitelli

Since React Native is now officially 0.65.+ version, jcenter() was removed from the Android part.
This library relies on Dimezis/BlurView for Android and the library uses https://jitpack.io/ as stated here.

So while updating RN for rnn-starter, I have come up with the patch file which you can use with patch-package.

@react-native-community+blur+3.6.0.patch

diff --git a/node_modules/@react-native-community/blur/android/build.gradle b/node_modules/@react-native-community/blur/android/build.gradle
index 8177235..5d310b9 100644
--- a/node_modules/@react-native-community/blur/android/build.gradle
+++ b/node_modules/@react-native-community/blur/android/build.gradle
@@ -9,7 +9,6 @@ buildscript {
     if (project == rootProject) {
         repositories {
             google()
-            jcenter()
         }
 
         dependencies {
@@ -37,11 +36,12 @@ android {
 
 repositories {
     google()
-    jcenter()
+
+    maven { url 'https://jitpack.io' }
 }
 
 dependencies {
     //noinspection GradleDynamicVersion
     implementation 'com.facebook.react:react-native:+'
-    implementation 'com.eightbitlab:blurview:1.6.3'
+    implementation 'com.github.Dimezis:BlurView:version-1.6.6'
 }

Link to Gist.
And here are available versions of BlurView on jitpack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions