|
@@ -18,9 +18,9 @@ const RNFetchBlob:RNFetchBlobNative = NativeModules.RNFetchBlob
|
18
|
18
|
* @param {string} scheme URI scheme that needs to support, optional
|
19
|
19
|
* @return {Promise}
|
20
|
20
|
*/
|
21
|
|
-function openDocument(path:string, scheme:string) {
|
|
21
|
+function previewDocument(path:string, scheme:string) {
|
22
|
22
|
if(Platform.OS === 'ios')
|
23
|
|
- return RNFetchBlob.openDocument('file://' + path, scheme)
|
|
23
|
+ return RNFetchBlob.previewDocument('file://' + path, scheme)
|
24
|
24
|
else
|
25
|
25
|
return Promise.reject('RNFetchBlob.openDocument only supports IOS.')
|
26
|
26
|
}
|
|
@@ -31,9 +31,9 @@ function openDocument(path:string, scheme:string) {
|
31
|
31
|
* @param {string} scheme URI scheme that needs to support, optional
|
32
|
32
|
* @return {Promise}
|
33
|
33
|
*/
|
34
|
|
-function previewDocument(path:string, scheme:string) {
|
|
34
|
+function openDocument(path:string, scheme:string) {
|
35
|
35
|
if(Platform.OS === 'ios')
|
36
|
|
- return RNFetchBlob.previewDocument('file://' + path, scheme)
|
|
36
|
+ return RNFetchBlob.openDocument('file://' + path, scheme)
|
37
|
37
|
else
|
38
|
38
|
return Promise.reject('RNFetchBlob.previewDocument only supports IOS.')
|
39
|
39
|
}
|