Skip to content

Commit fdcf93d

Browse files
authored
fix(viewer): authority string for FileProvider (#881)
* actually fix authority string for FileProvider * Fix authority string for FileProvider
1 parent f14842b commit fdcf93d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-native-documents/viewer": patch
3+
---
4+
5+
fix authority string for FileProvider

packages/document-viewer/android/src/main/java/com/reactnativedocumentviewer/RNDocumentViewerModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class RNDocumentViewerModule(reactContext: ReactApplicationContext) : NativeDocu
6363
} else if (bookmarkOrUri.startsWith("file://")) {
6464
val uri = Uri.parse(bookmarkOrUri)
6565
// TODO package name may not be the same as applicationId. Also see document-viewer/android/src/main/AndroidManifest.xml
66-
val authority = reactApplicationContext.packageName + ".reactnativedocumentviewer.provider"
66+
val authority = reactApplicationContext.packageName + ".reactnativedocumentviewer.fileprovider"
6767
val uriPath = uri.path ?: throw IllegalArgumentException("file:// uri must have a path")
6868
val fileUri = FileProvider.getUriForFile(
6969
reactApplicationContext,

0 commit comments

Comments
 (0)