We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native -v
react-native-cli: 2.0.1 react-native: 0.60.6
npm ls rnpm-plugin-windows
[email protected]
npm ls react-native-windows
node -v
v10.15.0
npm -v
6.4.1
Animated.View
scaleX
scaleY
Animated.Value
Animated.timing
useNativeDriver: true
The View would be scaled along its X or Y axis.
Nothing happens. The scale doesn't appear to apply at all.
const ScaleAnimationRepro = () => { const scaleAnimated = useRef(new Animated.Value(1)); const animatedStyle = { transform: [{scaleX: scaleAnimated.current}], width: 64, height: 64, }; const onPress = () => { Animated.timing(scaleAnimated.current, { duration: 400, toValue: 2, easing: Easing.linear, useNativeDriver: true, }).start(); }; return ( <> <Animated.View style={animatedStyle}> <Text>Scales up</Text> </Animated.View> <TouchableOpacity onPress={onPress}> <Text>Press to toggle animation.</Text> </TouchableOpacity> </> ); };
(Note that this min repro was written as a function component. See #3460 for an example of how to rewrite a function component as a class component).
scale
0.60.0-vnext.30
0.60.0-vnext.41
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Environment
react-native -v
:npm ls rnpm-plugin-windows
:npm ls react-native-windows
:node -v
:npm -v
:Steps to Reproduce
Animated.View
that contains a transformscaleX
orscaleY
set to anAnimated.Value
Animated.timing
to animate thatAnimated.Value
to a new value, withuseNativeDriver: true
Expected Behavior
The View would be scaled along its X or Y axis.

Actual Behavior
Nothing happens. The scale doesn't appear to apply at all.

Reproducible Demo
(Note that this min repro was written as a function component. See #3460 for an example of how to rewrite a function component as a class component).
Additional context
scale
works,scaleX
andscaleY
do not.0.60.0-vnext.30
, broke somewhere between that and0.60.0-vnext.41
. I would guess Fix two crashes from NativeAnimatedExamples #3400The text was updated successfully, but these errors were encountered: