Skip to content

Release 0.1.105 alpha

Compare
Choose a tag to compare
@github-actions github-actions released this 08 Mar 12:01
· 2505 commits to main since this release
51b2785

What's Changed

Breaking Changes

The animation system has been updated and we are moving away (deprecating) property callback syntax in favour for our new derived value system. This is implemented in C++ and is fast and efficient:

const Component = () => {
  const { width } = useWindowDimensions();
  // Create timing loop
  const progress = useLoop({
    duration: 1000,
    easing: Easing.inOut(Easing.cubic),
  });
  // Animate position of circle
  const position = useDerivedValue(
    (p) => mix(p, 10, width - (Size + Padding)),
    [progress]
  );
  // Animate radius of circle
  const radius = useDerivedValue((p) => 5 + p * 55, [progress]);
  return (
    <Canvas style={styles.canvas}>
      <Fill color="white" />
      <Circle cx={position} cy={20} r={radius} color="#DC4C4C" />
    </Canvas>
  );
};

Consult the Animation section in the documentation for more details!

Full Changelog: v0.1.103-alpha...v0.1.105-alpha