Skip to content

Commit

Permalink
Fix typo in useAnimatedStyle & useAnimatedProps in docs (#4935)
Browse files Browse the repository at this point in the history
## Summary

Change semicolon to comma in useAnimatedStyle doc.

## Test plan

Not need. Just doc.

---------

Co-authored-by: Kacper Kapuściak <39658211+kacperkapusciak@users.noreply.github.com>
  • Loading branch information
Gaohaoyang and kacperkapusciak committed Aug 29, 2023
1 parent dfaca45 commit dd8e1d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/docs/core/useAnimatedProps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ For animating style use [`useAnimatedStyle`](/docs/core/useAnimatedStyle) instea
## Reference

```jsx
import { useAnimatedProps } from "react-native-reanimated";
import { useAnimatedProps } from 'react-native-reanimated';

function App() {
// highlight-next-line
const animatedProps = useAnimatedProps(() => {
return {
opacity: sv.value ? 1 : 0;
opacity: sv.value ? 1 : 0,
};
// highlight-next-line
// highlight-next-line
});

// highlight-next-line
return <Animated.View animatedProps={animatedProps} />
return <Animated.View animatedProps={animatedProps} />;
}
```

Expand Down
8 changes: 4 additions & 4 deletions docs/docs/core/useAnimatedStyle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ For animating properties use [`useAnimatedProps`](/docs/core/useAnimatedProps) i
## Reference

```jsx
import { useAnimatedStyle } from "react-native-reanimated";
import { useAnimatedStyle } from 'react-native-reanimated';

function App() {
// highlight-next-line
const animatedStyles = useAnimatedStyle(() => {
return {
opacity: sv.value ? 1 : 0;
opacity: sv.value ? 1 : 0,
};
// highlight-next-line
// highlight-next-line
});

// highlight-next-line
return <Animated.View style={[styles.box, animatedStyles]} />
return <Animated.View style={[styles.box, animatedStyles]} />;
}
```

Expand Down

0 comments on commit dd8e1d5

Please sign in to comment.