Open
Description
Problem Description
The core RN Animated API affords users the ability to animate arbitrary props. For example, you can animate a square to a circle by animating the borderRadius
prop.
This functionality is not supported by the current implementation of NativeAnimated in react-native-windows.
Steps To Reproduce
- Add an example to RNTester > Native Animated Example that animates an arbitrary prop, e.g.,
borderRadius
:
{
title: 'Animate arbitrary prop',
render: function (): React.Node {
return (
<Tester type="timing" config={{duration: 4000}}>
{(anim) => (
<Animated.View
style={[
styles.block,
{
borderRadius: anim.interpolate({
inputRange: [0, 0.5, 1],
outputRange: [0, 25, 0],
}),
},
]}
/>
)}
</Tester>
);
},
}
- Run example.
- Native animation does nothing, JS driven animation works correctly.
Expected Results
The native-driven example should match the behavior of the JS-driven example.
CLI version
npx react-native --version
Environment
npx react-native info
Target Platform Version
No response
Target Device(s)
No response
Visual Studio Version
No response
Build Configuration
No response