From f9fcc90b2684a15a5021575395ca7fb7a3da244a Mon Sep 17 00:00:00 2001 From: Jacob Reyes Date: Wed, 7 Oct 2026 22:30:23 -0700 Subject: [PATCH 1/2] docs: describe Android foldable support in package and directory metadata - package.json description and keywords mention Android foldables (shows on npm with the next release). - docs/submissions/react-native-directory.md: reviewer notes reflect native Android foldable support and record that the entry merged in react-native-community/directory#2868. - Remove the already-applied directory patch file. Co-Authored-By: Claude Opus 5.5 --- ...estler-react-native-duo-to-directory.patch | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 docs/submissions/0001-Add-cawrestler-react-native-duo-to-directory.patch diff --git a/docs/submissions/0001-Add-cawrestler-react-native-duo-to-directory.patch b/docs/submissions/0001-Add-cawrestler-react-native-duo-to-directory.patch deleted file mode 100644 index df437e2..0000000 --- a/docs/submissions/0001-Add-cawrestler-react-native-duo-to-directory.patch +++ /dev/null @@ -1,35 +0,0 @@ -From ca3bbfa8de47097014a732c85f0d4b3a7e51f71c Mon Sep 17 00:00:00 2001 -From: Cursor Agent -Date: Tue, 6 Oct 2026 07:00:40 +0000 -Subject: [PATCH] Add @cawrestler/react-native-duo to directory - ---- - react-native-libraries.json | 13 +++++++++++++ - 1 file changed, 13 insertions(+) - -diff --git a/react-native-libraries.json b/react-native-libraries.json -index 652055a..7e653a8 100644 ---- a/react-native-libraries.json -+++ b/react-native-libraries.json -@@ -24634,5 +24634,18 @@ - "npmPkg": "@tapapplink/react-native", - "ios": true, - "android": true -+ }, -+ { -+ "githubUrl": "https://github.com/CAWRESTLER/react-native-duo", -+ "npmPkg": "@cawrestler/react-native-duo", -+ "examples": [ -+ "https://github.com/CAWRESTLER/react-native-duo/tree/main/example", -+ "https://github.com/CAWRESTLER/react-native-duo-expo-starter" -+ ], -+ "ios": true, -+ "android": true, -+ "web": true, -+ "configPlugin": true, -+ "newArchitecture": "new-arch-only" - } - ] --- -2.43.0 - From a5dbd58b0406749f59eb8f7ea5273b5156395d78 Mon Sep 17 00:00:00 2001 From: Jacob Reyes Date: Wed, 7 Oct 2026 22:30:49 -0700 Subject: [PATCH 2/2] docs: update package description and directory notes for Android foldables Co-Authored-By: Claude Opus 5.5 --- docs/submissions/react-native-directory.md | 6 ++---- package.json | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/submissions/react-native-directory.md b/docs/submissions/react-native-directory.md index 8c5409d..7f44304 100644 --- a/docs/submissions/react-native-directory.md +++ b/docs/submissions/react-native-directory.md @@ -18,8 +18,6 @@ Add `@cawrestler/react-native-duo` to the end of `react-native-libraries.json` i } ``` -**Notes for reviewers:** Native Duo behavior requires iOS 27.1+ and Xcode 27.1+. Android and web install and render with documented JavaScript fallbacks (no native Duo UI). The package requires the New Architecture (Fabric). +**Notes for reviewers:** Native Duo behavior requires iOS 27.1+ and Xcode 27.1+. Since `0.1.0`, Android foldables get native hinge posture, hinge angle, and fold regions through Jetpack WindowManager, and arrangements split along the fold; other Android components and web use documented JavaScript fallbacks. The package requires the New Architecture (Fabric). -If `react-native-duo-expo-starter` is not published yet, omit that example URL or publish the template repo first. - -Prepared patch branch (local): `add-cawrestler-react-native-duo` against directory `main`. +**Status:** merged in [react-native-community/directory#2868](https://github.com/react-native-community/directory/pull/2868). The directory reads the version, description, and topics from npm and GitHub automatically, so later releases don't need a directory PR unless a platform flag or example link changes. diff --git a/package.json b/package.json index e7a321c..74e21b6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@cawrestler/react-native-duo", "version": "0.1.0", - "description": "Native iPhone Duo layout, toolbar, scene, hinge, and camera APIs for React Native", + "description": "Native iPhone Duo layout, toolbar, scene, hinge, and camera APIs for React Native, with Android foldable support", "main": "./lib/module/index.js", "types": "./lib/typescript/src/index.d.ts", "exports": { @@ -64,6 +64,8 @@ "ios", "iphone-duo", "foldable", + "android", + "jetpack-windowmanager", "hinge", "uikit", "expo"