2
2
// Use of this source code is governed by a MIT-style license that can be
3
3
// found in the LICENSE file.
4
4
5
- import { NativeModules , Platform } from 'react-native'
5
+ import { NativeModules , Platform } from 'react-native' ;
6
6
7
- const ReactNativeBlobUtil = NativeModules . ReactNativeBlobUtil
7
+ const ReactNativeBlobUtil = NativeModules . ReactNativeBlobUtil ;
8
8
9
9
/**
10
10
* Send an intent to open the file.
@@ -16,37 +16,37 @@ const ReactNativeBlobUtil = NativeModules.ReactNativeBlobUtil
16
16
function actionViewIntent ( path , mime , chooserTitle ) {
17
17
if ( typeof chooserTitle === 'undefined' ) chooserTitle = null ;
18
18
if ( Platform . OS === 'android' )
19
- return ReactNativeBlobUtil . actionViewIntent ( path , mime , chooserTitle )
19
+ return ReactNativeBlobUtil . actionViewIntent ( path , mime , chooserTitle ) ;
20
20
else
21
- return Promise . reject ( 'ReactNativeBlobUtil.android.actionViewIntent only supports Android.' )
21
+ return Promise . reject ( 'ReactNativeBlobUtil.android.actionViewIntent only supports Android.' ) ;
22
22
}
23
23
24
24
function getContentIntent ( mime ) {
25
25
if ( Platform . OS === 'android' )
26
- return ReactNativeBlobUtil . getContentIntent ( mime )
26
+ return ReactNativeBlobUtil . getContentIntent ( mime ) ;
27
27
else
28
- return Promise . reject ( 'ReactNativeBlobUtil.android.getContentIntent only supports Android.' )
28
+ return Promise . reject ( 'ReactNativeBlobUtil.android.getContentIntent only supports Android.' ) ;
29
29
}
30
30
31
31
function addCompleteDownload ( config ) {
32
32
if ( Platform . OS === 'android' )
33
- return ReactNativeBlobUtil . addCompleteDownload ( config )
33
+ return ReactNativeBlobUtil . addCompleteDownload ( config ) ;
34
34
else
35
- return Promise . reject ( 'ReactNativeBlobUtil.android.addCompleteDownload only supports Android.' )
35
+ return Promise . reject ( 'ReactNativeBlobUtil.android.addCompleteDownload only supports Android.' ) ;
36
36
}
37
37
38
38
function getSDCardDir ( ) {
39
39
if ( Platform . OS === 'android' )
40
- return ReactNativeBlobUtil . getSDCardDir ( )
40
+ return ReactNativeBlobUtil . getSDCardDir ( ) ;
41
41
else
42
- return Promise . reject ( 'ReactNativeBlobUtil.android.getSDCardDir only supports Android.' )
42
+ return Promise . reject ( 'ReactNativeBlobUtil.android.getSDCardDir only supports Android.' ) ;
43
43
}
44
44
45
45
function getSDCardApplicationDir ( ) {
46
46
if ( Platform . OS === 'android' )
47
- return ReactNativeBlobUtil . getSDCardApplicationDir ( )
47
+ return ReactNativeBlobUtil . getSDCardApplicationDir ( ) ;
48
48
else
49
- return Promise . reject ( 'ReactNativeBlobUtil.android.getSDCardApplicationDir only supports Android.' )
49
+ return Promise . reject ( 'ReactNativeBlobUtil.android.getSDCardApplicationDir only supports Android.' ) ;
50
50
}
51
51
52
52
@@ -56,4 +56,4 @@ export default {
56
56
addCompleteDownload,
57
57
getSDCardDir,
58
58
getSDCardApplicationDir,
59
- }
59
+ } ;
0 commit comments