Skip to content

Releases

2.1.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:24
ceb0b69

Minor Changes

  • #7 Thanks @eduardoborges! - Add hinge.addHingeAngleListener. It calls back with the hinge angle in degrees on every change, or with undefined when an iOS window moves somewhere without a hinge. Angle changes don't fire addChangeListener, so layout listeners don't run while the hinge moves.

  • #8 Thanks @eduardoborges! - Add react-native-nitro-hinge/reanimated with useAnimatedHinge(), useAnimatedHingeAngle(), addHingeWorkletListener and addHingeAngleWorkletListener. The shared values update on the UI thread without going through JS. react-native-reanimated 4.4 or later and react-native-worklets 0.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 under node_modules/react-native-nitro-hinge/skills.

  • #7 Thanks @eduardoborges! - Android now reads the hinge angle sensor, so hinge.hingeAngle reports the angle there. It always returned undefined before.

  • #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

Choose a tag to compare

@github-actions github-actions released this 06 Nov 15:48

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

Choose a tag to compare

@github-actions github-actions released this 06 Nov 15:36

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

Choose a tag to compare

@github-actions github-actions released this 05 Nov 01:57

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

Choose a tag to compare

@github-actions github-actions released this 29 Oct 05:16

What's Changed

  • fix(ios): fold detection, reactive updates and hingeAngle on iPhone Duo by @eduardoborges in #2

New Contributors

Full Changelog: v2.0.2...v2.0.3

Release 2.0.2

Choose a tag to compare

@github-actions github-actions released this 29 Sep 05:45

Full Changelog: v2.0.1...v2.0.2

Release 2.0.1

Choose a tag to compare

@github-actions github-actions released this 29 Sep 05:41

Full Changelog: v1.0.1...v2.0.1

Release 1.0.1

Choose a tag to compare

@github-actions github-actions released this 22 Sep 16:51