Skip to content

Commit

Permalink
docs: fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
catalinmiron committed Sep 1, 2023
1 parent f4512d6 commit e90a633
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,19 @@ import { Stagger } from '@animatereactnative/stagger';

export function Example() {
return (
<Stagger spacing={20} speed={1}>
<Stagger
stagger={50}
duration={300}
exitDirection={-1}
entering={() => ZoomInEasyDown.springify()}
exiting={() => FadeOutDown.springify()}
style={{
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',
gap: 12,
}}
>
<Paragraph>1. Custom duration</Paragraph>
<Paragraph>2. Custom stagger</Paragraph>
<Paragraph>3. Custom animation</Paragraph>
Expand Down

0 comments on commit e90a633

Please sign in to comment.