|
@@ -9,6 +9,7 @@ import {
|
9
|
9
|
Linking,
|
10
|
10
|
Platform,
|
11
|
11
|
Dimensions,
|
|
12
|
+ BackAndroid,
|
12
|
13
|
AsyncStorage,
|
13
|
14
|
Image,
|
14
|
15
|
} from 'react-native';
|
|
@@ -105,7 +106,7 @@ let begin = Date.now()
|
105
|
106
|
//
|
106
|
107
|
// RNFetchBlob.fetch('GET', `${TEST_SERVER_URL}/cookie`)
|
107
|
108
|
// .then((res) => {
|
108
|
|
-// return RNFetchBlob.fetch('GET', `${TEST_SERVER_URL}/xhr-header`)
|
|
109
|
+// return RNFetchBlotesb.fetch('GET', `${TEST_SERVER_URL}/xhr-header`)
|
109
|
110
|
// })
|
110
|
111
|
// .then((res) => {
|
111
|
112
|
// console.log(res)
|
|
@@ -133,11 +134,32 @@ let begin = Date.now()
|
133
|
134
|
// })
|
134
|
135
|
// })
|
135
|
136
|
|
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
|
+// })
|
137
|
145
|
|
138
|
|
- fs.df().then((stat) => {
|
139
|
|
- console.log(stat);
|
140
|
|
- done();
|
141
|
|
- })
|
142
|
146
|
|
|
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
|
+ })
|
143
|
165
|
})
|