You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_A fork of [react-native-fs](https://github.com/itinance/react-native-fs) with a smaller footprint and fixes due to the upstream library seemingly being abandoned._
3
3
4
+
**Now powered by [Nitro Modules](https://github.com/mrousavy/nitro)** for superior performance and type safety! 🚀
5
+
4
6
### Why the fork?
5
7
This library intentional or not has become critical to the success of our mobile applications. We've noticed a few things that led to this fork:
6
8
@@ -18,19 +20,42 @@ We debated a few paths, but we felt it best to fork the project and make some ma
18
20
19
21
We will continue to support this library for as long as we use it.
20
22
23
+
## Features
24
+
25
+
- 🚀 **High Performance**: Powered by Nitro Modules with direct JSI bindings
26
+
- 📁 **File System Operations**: Complete file system access (read, write, copy, move, etc.)
27
+
- 🌊 **File Streaming** (Beta): Efficiently handle large files with streaming API
28
+
- 📱 **MediaStore Support**: Android MediaStore integration for media files
29
+
- ⬇️ **Downloads**: Background downloads with progress tracking
30
+
- 🔒 **Type Safe**: Full TypeScript support with end-to-end type safety
31
+
- 🎯 **Cross Platform**: iOS and Android support
32
+
21
33
### Installation
22
34
```bash
23
35
npm i --save react-native-fs2
36
+
# Peer dependency required
37
+
npm i --save react-native-nitro-modules
24
38
```
25
39
26
40
#### Supported React Native Versions
27
41
| react-native-fs2 | react-native |
28
42
|------------------|--------------|
43
+
| 4.x (nitro) | >=0.80 |
29
44
| 3.0.x | >=0.69 |
30
45
31
46
### Changelog
32
47
Changes can be found in [CHANGELOG.md](CHANGELOG.md)
33
48
49
+
### What's New in 4.x
50
+
51
+
-**Nitro Modules Architecture**: Complete rewrite using Nitro Modules for superior performance
52
+
-**File Streaming API**: New streaming capabilities for large file operations (see [FILE_STREAM.md](./docs/FILE_STREAM.md))
53
+
-**Better Type Safety**: End-to-end type safety from TypeScript to native code
54
+
-**ArrayBuffer Built-in**: Native ArrayBuffer support without additional dependencies
55
+
-**Backward Compatible API**: Most existing code works without changes!
56
+
57
+
> **Note**: v4.x requires `react-native-nitro-modules` as a peer dependency. See migration notes below.
* Scan the file using [Media Scanner](https://developer.android.com/reference/android/media/MediaScannerConnection).
280
304
305
+
# File Streaming API (Beta)
306
+
307
+
React-native-fs2 now provides powerful file streaming capabilities for efficiently reading and writing large files without loading entire content into memory.
0 commit comments