Skip to content

Instantly share code, notes, and snippets.

@Aure77
Aure77 / react-native-blob-util+0.13.16.patch
Created November 10, 2021 17:41
react-native-blob-util actionViewIntent fix for Android 11+ devices
diff --git a/node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java b/node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java
index 0e1dffd..0eb5bdf 100644
--- a/node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java
+++ b/node_modules/react-native-blob-util/android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtil.java
@@ -118,36 +118,26 @@ public class ReactNativeBlobUtil extends ReactContextBaseJavaModule {
this.getReactApplicationContext().getPackageName() + ".provider", new File(path));
Intent intent = new Intent(Intent.ACTION_VIEW);
- if (Build.VERSION.SDK_INT >= 24) {
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {