This repository was archived by the owner on Mar 16, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Expand file tree Collapse file tree 1 file changed +28
-6
lines changed Original file line number Diff line number Diff line change 99 Linking ,
1010 Platform ,
1111 Dimensions ,
12+ BackAndroid ,
1213 AsyncStorage ,
1314 Image ,
1415} from 'react-native' ;
@@ -105,7 +106,7 @@ let begin = Date.now()
105106//
106107// RNFetchBlob.fetch('GET', `${TEST_SERVER_URL}/cookie`)
107108// .then((res) => {
108- // return RNFetchBlob .fetch('GET', `${TEST_SERVER_URL}/xhr-header`)
109+ // return RNFetchBlotesb .fetch('GET', `${TEST_SERVER_URL}/xhr-header`)
109110// })
110111// .then((res) => {
111112// console.log(res)
@@ -133,11 +134,32 @@ let begin = Date.now()
133134// })
134135// })
135136
136- describe ( '#162 get free disk space' , ( report , done ) => {
137+ // describe('#162 get free disk space', (report, done) => {
138+ //
139+ // fs.df().then((stat) => {
140+ // console.log(stat);
141+ // done();
142+ // })
143+ //
144+ // })
137145
138- fs . df ( ) . then ( ( stat ) => {
139- console . log ( stat ) ;
140- done ( ) ;
141- } )
142146
147+ describe ( 'action view intent get callback' , ( report , done ) => {
148+ let isActionViewVisible = false
149+
150+ RNFetchBlob . config ( {
151+ fileCache : true ,
152+ appendExt : 'png' ,
153+ trusty : true
154+ } )
155+ . fetch ( 'GET' , `${ TEST_SERVER_URL } /public/github.png` )
156+ . then ( res => {
157+ console . log ( res . data ) ;
158+ console . log ( res . info ( ) )
159+ RNFetchBlob . android . actionViewIntent ( res . path ( ) , 'image/png' )
160+ . then ( ( ) => {
161+ console . log ( 'action-view removed' )
162+ isActionViewVisible = true
163+ } ) ;
164+ } )
143165} )
You can’t perform that action at this time.
0 commit comments