Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions website/blog/2026-04-07-react-native-0.85.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ With the new animation backend, you'll be able to animate Flexbox and position p
```jsx
import {
Animated,
View,
Button,
View,
useAnimatedValue,
} from 'react-native';
import {allowStyleProp} from 'react-native/Libraries/Animated/NativeAnimatedAllowlist';

allowStyleProp('width');

function MyComponent() {
const width = useAnimatedValue(100);
Expand All @@ -87,12 +84,12 @@ function MyComponent() {
};

return (
<>
<View style={{flex: 1}}>
<Animated.View
style={{width, height: 100, backgroundColor: 'blue'}}
/>
<Button title="Expand" onPress={toggle} />
</>
</View>
);
}
```
Expand Down
Loading