소스 검색

Merge pull request #17 from alzalabany/patch-2

compatible with RN > 0.49
Travis Nuttall 6 년 전
부모
커밋
614ef561dd
No account linked to committer's email address
2개의 변경된 파일19개의 추가작업 그리고 3개의 파일을 삭제
  1. 15
    3
      README.md
  2. 4
    0
      ios/RNFetchBlob/RNFetchBlob.m

+ 15
- 3
README.md 파일 보기

@@ -1,3 +1,15 @@
1
+## New Maintainers
2
+
3
+We make quite a bit of use of react-native-fetch-blob at Jolt and would like to maintain the project.  Feel free to open issues, PRs, etc. here as you would on the original repository.  We will be investigating a new npm namespace under which to publish future versions of this library.
4
+
5
+<br>
6
+
7
+## About Pull Requests
8
+
9
+Bugfixes should be applied to the `0.10.9` branch and new features should be applied to the `0.11.0`. Documentation/README updates can be applied directly to `master`.
10
+
11
+<br>
12
+
1 13
 # react-native-fetch-blob
2 14
 [![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?style=flat-square)](https://github.com/wkh237/react-native-fetch-blob/releases) [![npm](https://img.shields.io/npm/v/react-native-fetch-blob.svg?style=flat-square)](https://www.npmjs.com/package/react-native-fetch-blob) ![](https://img.shields.io/badge/PR-Welcome-brightgreen.svg?style=flat-square) [![](https://img.shields.io/badge/Wiki-Public-brightgreen.svg?style=flat-square)](https://github.com/wkh237/react-native-fetch-blob/wiki) [![npm](https://img.shields.io/npm/l/react-native-fetch-blob.svg?maxAge=2592000&style=flat-square)]()
3 15
 
@@ -18,9 +30,9 @@ A project committed to making file access and data transfer easier and more effi
18 30
 * [Installation](#user-content-installation)
19 31
 * [HTTP Data Transfer](#user-content-http-data-transfer)
20 32
  * [Regular Request](#user-content-regular-request)
21
- * [Download file](#user-content-download-example--fetch-files-that-needs-authorization-token)
33
+ * [Download file](#download-example-fetch-files-that-need-authorization-token)
22 34
  * [Upload file](#user-content-upload-example--dropbox-files-upload-api)
23
- * [Multipart/form upload](#user-content-multipartform-data-example--post-form-data-with-file-and-data)
35
+ * [Multipart/form upload](#multipartform-data-example-post-form-data-with-file-and-data)
24 36
  * [Upload/Download progress](#user-content-uploaddownload-progress)
25 37
  * [Cancel HTTP request](#user-content-cancel-request)
26 38
  * [Android Media Scanner, and Download Manager Support](#user-content-android-media-scanner-and-download-manager-support)
@@ -638,7 +650,7 @@ RNFetchBlob.fs.readStream(
638 650
       console.log('oops', err)
639 651
     })
640 652
     ifstream.onEnd(() => {  
641
-      <Image source={{ uri : 'data:image/png,base64' + data }}
653
+      <Image source={{ uri : 'data:image/png,base64' + data }}/>
642 654
     })
643 655
 })
644 656
 ```

+ 4
- 0
ios/RNFetchBlob/RNFetchBlob.m 파일 보기

@@ -42,6 +42,10 @@ dispatch_queue_t fsQueue;
42 42
     return rootView.bridge;
43 43
 }
44 44
 
45
++ (BOOL)requiresMainQueueSetup {
46
+    return NO;
47
+}
48
+
45 49
 RCT_EXPORT_MODULE();
46 50
 
47 51
 - (id) init {