Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
57b5b34
feat: init nitro migration
ian-wd Jun 2, 2025
fcfc5b8
feat: download resume callback nitro migration
ian-wd Jun 2, 2025
df6f0a2
feat: remove downloadIsResumable from DownloaderDelegate
ian-wd Jun 2, 2025
aa8e23c
fix: mkdir not throwing error and fixed redundant file stat `NativeSt…
ian-wd Jun 9, 2025
986441c
fix: fs2 arraybuffer ownership issues on android
ian-wd Jun 12, 2025
f997fda
fix: apply buffer ownership fix to iOS
ian-wd Jun 12, 2025
4aaf46e
feat: integrate legacy examples and fix errors
ian-wd Jun 13, 2025
edc8fe4
refactor: downloader listeners per jobId and fix JNI crashes
ian-wd Jun 16, 2025
afbe733
fix: iOS threading issues
ian-wd Jun 17, 2025
114b8f1
feat: read/write stream and RN0.80 upgrade
ian-wd Jun 17, 2025
6d8a5ba
refactor: leverage arraybuffer on native read/write stream
ian-wd Jun 17, 2025
ae1a513
feat: add read/write stream example and fix stream listener issues
ian-wd Jun 18, 2025
5ec055b
feat: bump tooling and example to RN 0.81
ian-wd Oct 3, 2025
6030610
feat: file stream improvements
ian-wd Oct 3, 2025
f0b10e1
chore: fix deprecated `TurboReactPackage` warning
ian-wd Oct 16, 2025
5ca45fa
docs: 4.x documentation updates
ian-wd Oct 16, 2025
1acbcae
chore: switch back to npm
ian-wd Oct 20, 2025
d881ef5
feat: apply `FileUtils.copy` changes from v3.3.4
ian-wd Oct 21, 2025
1af33dc
docs: update MediaStore related docs
ian-wd Oct 21, 2025
a883109
chore: merge master into nitro-migration
ian-wd Aug 27, 2026
1a6e9f6
chore: use non-deprecated JNI init for Nitro 0.35+
ian-wd Aug 27, 2026
3440dc3
fix: replace bigint with Int64 in nitro specs for 0.35+
ian-wd Aug 27, 2026
a002743
chore: bump nitro modules and nitrogen to 0.37.0
ian-wd Aug 27, 2026
f09b828
feat: bump library tooling to React Native 0.87.1
ian-wd Aug 27, 2026
b22b25c
feat: upgrade example app to React Native 0.87.1
ian-wd Aug 27, 2026
5d24b2e
ci: add typecheck step
ian-wd Aug 27, 2026
c5f4ddb
feat: add content URI support to stat (ports #105)
ian-wd Aug 27, 2026
1252145
fix: pin library ndkVersion so it matches the app instead of AGP's de…
ian-wd Aug 27, 2026
6fad963
feat: content URI sources for MediaStore writes and restore file tran…
ian-wd Aug 27, 2026
967f769
feat: add EUNSPECIFIED error code prefix and content URI example (por…
ian-wd Aug 27, 2026
454a514
docs: reconcile RN support table and changelog with master 3.4.x
ian-wd Aug 27, 2026
95d4dcd
fix: declare react-native-monorepo-config which builder-bob 0.43 no l…
ian-wd Aug 27, 2026
a7ea8ea
fix: rename ArrayBufferHolder and AnyMapHolder for Nitro 0.37 Swift API
ian-wd Aug 27, 2026
18fbad0
build: regenerate iOS pods for React Native 0.87.1 and Nitro 0.37.0
ian-wd Aug 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length=120
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ jobs:

- name: Linting
run: npm run lint

- name: Typecheck
run: npm run typecheck
79 changes: 71 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
node_modules
workbench
*.log
# Xcode
# OSX
#
.DS_Store

# XDE
.expo/

# VSCode
.vscode/
jsconfig.json

# Xcode
#
build/
*.pbxuser
!default.pbxuser
Expand All @@ -12,12 +20,15 @@ build/
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
**/.xcode.env.local
.idea/
# Pods - for those of you who use CocoaPods
Pods
Expand All @@ -32,6 +43,58 @@ android/.project
.kotlin/
Session.vim

# Android/IJ
#
.classpath
.cxx
.gradle
.idea
.project
.settings
local.properties
android.iml

# Cocoapods
#
example/ios/Pods

# Ruby
example/vendor/

# Bob
# node.js
#
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
example/.yarn/*

# Expo
.expo/

# Turborepo
.turbo/

# generated by bob
lib/

# React Native Codegen
ios/generated
android/generated

# React Native Nitro Modules
nitrogen/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22
1 change: 1 addition & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# Changelog

# v3.4.2 (March 9, 2025)
# v4.0.0
* Rewritten on [Nitro Modules](https://nitro.margelo.com) β€” direct JSI bindings, end-to-end type safety.
* New file streaming API (beta) for large files, see [FILE_STREAM.md](./docs/FILE_STREAM.md).
* Native `ArrayBuffer` support for reads and writes; no extra dependencies required.
* Android modules rewritten in Kotlin; iOS in Swift.
* Ports [#105](https://github.com/sourcetoad/react-native-fs2/pull/105) - Improve handling for Android Content URIs.
* Requires `react-native-nitro-modules` and React Native >= 0.82.

# v3.4.2 (March 9, 2026)
* [#111](https://github.com/sourcetoad/react-native-fs2/pull/111) - Move CI to Node 24

# v3.4.1 (March 9, 2025)
# v3.4.1 (March 9, 2026)
* [#109](https://github.com/sourcetoad/react-native-fs2/pull/109) - Fix OIDC publish

# v3.4.0 (March 9, 2025)
* [#82](https://github.com/sourcetoad/react-native-fs2/pull/92) - Upgrade to RN82.
# v3.4.0 (March 9, 2026)
* [#92](https://github.com/sourcetoad/react-native-fs2/pull/92) - Upgrade to RN82.
* [#103](https://github.com/sourcetoad/react-native-fs2/pull/103) - Adds Trusted Publishing
* [#105](https://github.com/sourcetoad/react-native-fs2/pull/105) - Improve handling for Android Content URIs

Expand Down
133 changes: 133 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@

# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[INSERT CONTACT METHOD].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series of
actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or permanent
ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within the
community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].

For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].

[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
Loading