Bug Fixes
- core:
PickAnimatednow infers all animated keys when a partialfromis provided. Previously afromprop collapsed the result type to just thefromshape, droppingtokeys, forward props, and the other transition phases — souseSpring({ width: 100, height: 100, from: { width: 0 } })madestyles.heighta compile error even thoughheightanimates at runtime. It now mergesfromwith theto, forward, and transition-phase values. (#2545) - core: The
SpringValue-levelonChangenow receives anAnimationResult({ value, finished: false, cancelled: false }) instead of the raw value, soresult.valueis no longerundefinedmid-animation. This matchesonStart/onRestand theController-levelonChange. The internalchangeevent the animated tree subscribes to still emits the raw value. (#2548) - animated: Fixed a
cannot add a new propertycrash when wrapping non-extensible React Native host components. On Hermes, host components likeView,Text, andImagebecome non-extensible after their first render, breaking the wrapper cache.createHostnow attempts the direct write first (fast path, unchanged for extensible components) and falls back to a module-levelWeakMapwhen the write is rejected. (#2535)
Performance
- shared: Improved string interpolation performance with large amounts of data by caching output number parsing in
createStringInterpolator. (#2547)
Full Changelog: v10.1.1...v10.1.2