Skip to content

Commit

Permalink
chore: add interactive example 1/2
Browse files Browse the repository at this point in the history
  • Loading branch information
patrycjakalinska committed Jul 16, 2024
1 parent 3e8d141 commit dfce6a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
sidebar_position: 2
---

import Keyframe from '@site/src/examples/KeyframeAnimation';
import KeyframeSrc from '!!raw-loader!@site/src/examples/KeyframeAnimation';

# Keyframe animations
Expand Down Expand Up @@ -71,6 +72,8 @@ keyframe

## Example

<InteractiveExample src={KeyframeSrc} component={Keyframe} />

<ExampleVideo
sources={{
android:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import { View, Button, StyleSheet, Pressable } from 'react-native';
import Animated, { Keyframe, Easing } from 'react-native-reanimated';

export function KeyframeExample() {
export default function KeyframeExample() {
const [visible, setVisible] = useState(true);

const enteringAnimation = new Keyframe({
Expand Down

0 comments on commit dfce6a1

Please sign in to comment.