You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: viewer module errorCodes
* Bump @react-native-documents/viewer to major version
Updated version of @react-native-documents/viewer to major and fixed viewer module errorCodes.
* fix: old arch
Copy file name to clipboardExpand all lines: packages/document-viewer/android/src/paper/java/com/reactnativedocumentviewer/NativeDocumentViewerSpec.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,5 +34,5 @@ public NativeDocumentViewerSpec(ReactApplicationContext reactContext) {
Copy file name to clipboardExpand all lines: packages/document-viewer/src/index.ts
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,23 +17,28 @@ export type PresentationStyle =
17
17
exporttypeBaseOptions={
18
18
/**
19
19
* Android only: The type of permission to grant to the receiving app that will open the document.
20
-
* This only has effect if you're viewing a file that lives in the app's sandboxed storage.
20
+
* This only has an effect if you're viewing a file that lives in the app's sandboxed storage.
21
21
*/
22
22
grantPermissions?: 'read'|'write'
23
23
/**
24
24
* iOS only: The title to display in the header of the document viewer.
25
-
* If not provided, the filename will be used.
25
+
* @defaultthe file name.
26
26
*/
27
27
headerTitle?: string
28
28
/**
29
-
* Optional, but recommended: the mimetype of the document. This will help the Android OS to find the right app(s) to open the document.
29
+
* Optional, but strongly recommended: the mimetype of the document. This helps the Android OS to find the right app(s) to open the document.
30
30
*/
31
31
mimeType?: string
32
-
33
32
/**
34
-
* iOS only - Controls how the picker is presented, e.g. on an iPad you may want to present it fullscreen. Defaults to `pageSheet`.
33
+
* iOS only - Controls how the picker is presented, e.g. on an iPad you may want to present it fullscreen.
34
+
* @default `pageSheet`.
35
35
* */
36
36
presentationStyle?: PresentationStyle
37
+
/**
38
+
* Android only - Optional, only provide a value if `viewDocument` rejects with `IllegalArgumentException`. Represents the unique identifier for an Android application.
39
+
* @default application package name, which usually is the same as the application id.
40
+
*/
41
+
androidApplicationId?: string
37
42
}
38
43
39
44
/**
@@ -74,6 +79,7 @@ export function viewDocument(data: ViewDocumentOptions): Promise<null> {
0 commit comments