transitionProperty
transitionProperty
lets you specify the name or names of styles properties to transition.
Loading...
Reference
function App() {
return (
<Animated.View
style={{
transitionProperty: 'width',
transitionDuration: 300,
}}
/>
);
}


Type definitions
import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
type PlainStyle = ViewStyle & TextStyle & ImageStyle;
type CSSTransitionProperty<S extends object = PlainStyle> =
| 'all'
| 'none'
| keyof S
| ('all' | keyof S)[];