@react-native-oh-tpl/react-native-blob-util 0.19.6-0.0.13
legitimate file utility library
“A module provides upload, download, and files access API. Supports file stream read/write for process large files.”
Basename is uppercase README.mdCaret or XOR operation token in source
SHA-256ae27c664a3ebbc2958d38b93d8a62cd0e6308d7131c77e2cadded9cd6be4c700
Evidence
1MIT License
2
3Copyright (c) 2017 [email protected]
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
1# Migration to the New Architecture
2
3This file is a tracker for what has been done to work on the migration of this library and to keep also track of the various todo:
4
5## TODO
⋯14 lines
201. Checked the list of APIs to migrate.
211. Created an `OldArch` app (0.70) configured for the Old Architecture.
221. Run the app to make sure that it works properly.
231. Created a `NewArch` app (0.70) configured for the New Architecture.
241. Switched the flags for iOS and Android to have the new arch enabled by default
251. Run the app to make sure that it works properly.
261. Moved the apps in the `examples` folder
⋯5 lines
321. `bundle install && bundle exec pod install`
331. `cd ..`
341. `npx react-native run-ios`
351. Copy the app JS code from `examples/ReactNativeBlobUtil/App.js` to `examples/OldArch/App.js`
361. Fixed various JS issues
371. The app depends on the `Picker`. *Note:* It does not support the New Arch, we need to figure out another way to choose.
38 1. run `yarn add @react-native-picker/picker`
39 1. run `bundle exec pod install` from the iOS folder
40 1. re-run the app
411. Repeat the above steps for `NewArch`
1# @react-native-oh-tpl/react-native-blob-util
2
3This project is based on [react-native-blob-util](https://github.com/RonRadtke/react-native-blob-util)
4
5## Documentation
⋯5 lines
11## License
12
13This library is licensed under [The MIT License (MIT)](https://github.com/RonRadtke/react-native-blob-util/blob/master/LICENSE)
39:59… fo.headers['content-type'];
40 return new Promise((resolve, reject) => {
41 switch (this.type) {
42 case 'base64':
43 // TODO : base64 to array buffer
44 break;
45 case 'path':
46 fs.readFile(this.data, 'ascii').then(resolve);
47 break;
48 default:
49 // TO …
80:30… ) {
81 case 'base64':
82 return base64.decode(this.data);
83 case 'path':
84 return fs.readFile(this.data, 'base64').then((b64) => Promise.res …
Showing the top 5 files — 7 more files (46 regions) not shown.
No evidence locations were recorded for this file. Raw result