Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for New Architecture #1221

Open
vbansal-bb opened this issue Jan 9, 2024 · 2 comments
Open

Support for New Architecture #1221

vbansal-bb opened this issue Jan 9, 2024 · 2 comments

Comments

@vbansal-bb
Copy link

Just want to know if there is any plan to support New Architecture atleast for Android and iOS?

@birdofpreyru
Copy link

#1197 — The future of react-native-fs

TL;DR.:

  1. This repo is stale, no active work happening here now. I actively maintain a fork of the project, but it lives, and it is managed through a different repo — https://github.com/birdofpreyru/react-native-fs.
  2. The new architecture is supported in my fork for all platforms (and for most, but not all, methods).

@cmpayc
Copy link

cmpayc commented Nov 11, 2024

If you have New Architecture enabled in your project, you can try my project (only for Android and iOS):
github: https://github.com/cmpayc/react-native-fs-turbo
npm: https://www.npmjs.com/package/react-native-fs-turbo

It is written from scratch using C++ Turbo modules (except for platform dependent parts like download and upload - they also use C++ bridge, but the final implementation is the same as in this project) and TypeScript.
All input and output parameters are compatible with the old library, so there should be no problems with the transition. You just need to take into account the fact that now all methods are synchronous.
Also added some new improvements such as uint8 for reading and writing files.
And of course, the speed of work has increased in some cases by 10 times compared to the old library (you can see benchmarks in the description)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants