Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wet-impalas-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-native-documents/viewer": patch
---

fix(android): couldn't find meta-data for provider
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class RNDocumentViewerModule(reactContext: ReactApplicationContext) : NativeDocu
UriWithFlags(Uri.parse(bookmarkOrUri), flags)
} else if (bookmarkOrUri.startsWith("file://")) {
val uri = Uri.parse(bookmarkOrUri)
// TODO package name may not be the same as applicationId
val authority = reactApplicationContext.packageName + ".provider"
// TODO package name may not be the same as applicationId. Also see document-viewer/android/src/main/AndroidManifest.xml
val authority = reactApplicationContext.packageName + ".reactnativedocumentviewer.provider"
val uriPath = uri.path ?: throw IllegalArgumentException("file:// uri must have a path")
val fileUri = FileProvider.getUriForFile(
reactApplicationContext,
Expand Down
Loading