Repository navigation
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.