We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f14842b commit 2a6247eCopy full SHA for 2a6247e
1 file changed
packages/document-viewer/android/src/main/java/com/reactnativedocumentviewer/RNDocumentViewerModule.kt
@@ -63,7 +63,7 @@ class RNDocumentViewerModule(reactContext: ReactApplicationContext) : NativeDocu
63
} else if (bookmarkOrUri.startsWith("file://")) {
64
val uri = Uri.parse(bookmarkOrUri)
65
// 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"
+ val authority = reactApplicationContext.packageName + ".reactnativedocumentviewer.fileprovider"
67
val uriPath = uri.path ?: throw IllegalArgumentException("file:// uri must have a path")
68
val fileUri = FileProvider.getUriForFile(
69
reactApplicationContext,
0 commit comments