Skip to content

2.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:24
· 10 commits to main since this release
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.