Repository navigation
Releases
2.1.0
Minor Changes
-
#7 Thanks @eduardoborges! - Add
hinge.addHingeAngleListener. It calls back with the hinge angle in degrees on every change, or withundefinedwhen an iOS window moves somewhere without a hinge. Angle changes don't fireaddChangeListener, so layout listeners don't run while the hinge moves. -
#8 Thanks @eduardoborges! - Add
react-native-nitro-hinge/reanimatedwithuseAnimatedHinge(),useAnimatedHingeAngle(),addHingeWorkletListenerandaddHingeAngleWorkletListener. The shared values update on the UI thread without going through JS.react-native-reanimated4.4 or later andreact-native-worklets0.9 or later are optional peer dependencies, and the main entry doesn't import them.
Patch Changes
-
#10 Thanks @eduardoborges! - Ship an agent skill for Claude Code and Codex. Install it with
npx skills add Gautham495/react-native-nitro-hinge, or find it undernode_modules/react-native-nitro-hinge/skills. -
#7 Thanks @eduardoborges! - Android now reads the hinge angle sensor, so
hinge.hingeAnglereports the angle there. It always returnedundefinedbefore. -
#9 Thanks @eduardoborges! - Rewrite the README around four examples, each with a GIF and its code. The background material moved to
docs/foldables.md.
Release 2.0.6
What's Changed
- perf: share one native listener between useHinge callers and add a selector by @eduardoborges in #6
Full Changelog: v2.0.5...v2.0.6
Release 2.0.5
What's Changed
- fix(ios): skip repeated state events, release closed scenes, drop the made-up fallback by @eduardoborges in #5
Full Changelog: v2.0.4...v2.0.5
Release 2.0.4
What's Changed
- fix: Android window state after Activity recreation, iOS 27.1 flag, tests by @eduardoborges in #3
Full Changelog: v2.0.3...v2.0.4
Release 2.0.3
What's Changed
- fix(ios): fold detection, reactive updates and hingeAngle on iPhone Duo by @eduardoborges in #2
New Contributors
- @eduardoborges made their first contribution in #2
Full Changelog: v2.0.2...v2.0.3
Release 2.0.2
Full Changelog: v2.0.1...v2.0.2
Release 2.0.1
Full Changelog: v1.0.1...v2.0.1