Skip to content

Commit

Permalink
docs: fix useAnimatedKeyboard page crash (#6056)
Browse files Browse the repository at this point in the history
Due to change in InteractiveExample, `useAnimatedVideo` page on
production crashed. To fix that we transformed `useAnimatedVideo`
InteraciveExample component to a functional component.

Before:

![image](https://github.com/software-mansion/react-native-reanimated/assets/59940332/06babb02-74ed-4612-ae65-0fb81e7c3271)

After:
<img width="951" alt="image"
src="https://github.com/software-mansion/react-native-reanimated/assets/59940332/9fe2523e-4050-436b-acff-8c491a07a306">
  • Loading branch information
patrycjakalinska committed May 28, 2024
1 parent 4485509 commit 4d44d38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/device/useAnimatedKeyboard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import AnimatedKeyboardSrc from '!!raw-loader!@site/src/examples/AnimatedKeyboar

<InteractiveExample
src={AnimatedKeyboardSrc}
component={
component={() => (
<ThemedVideo
center
width={300}
Expand All @@ -91,7 +91,7 @@ import AnimatedKeyboardSrc from '!!raw-loader!@site/src/examples/AnimatedKeyboar
dark: '/recordings/useAnimatedKeyboard_dark.mov',
}}
/>
}
)}
/>

## Remarks
Expand Down

0 comments on commit 4d44d38

Please sign in to comment.