Skip to content

Commit

Permalink
chore: update normal demo of example project
Browse files Browse the repository at this point in the history
  • Loading branch information
dohooo committed May 15, 2022
1 parent 72d06ec commit 59fb446
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"fiction-expo-restart": "^1.1.0",
"gh-pages": "^3.2.3",
"react-native-gesture-handler": "~2.1.0",
"react-native-reanimated": "~2.3.1"
"react-native-reanimated": "~2.3.1",
"typescript": "~4.3.5"
}
}
14 changes: 14 additions & 0 deletions example/src/normal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,20 @@ function Index() {
>
Change data length to:{data.length === 6 ? 8 : 6}
</SButton>
<SButton
onPress={() => {
ref.current?.scrollTo({ count: -1, animated: true });
}}
>
prev
</SButton>
<SButton
onPress={() => {
ref.current?.scrollTo({ count: 1, animated: true });
}}
>
next
</SButton>
</View>
);
}
Expand Down
5 changes: 5 additions & 0 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12281,6 +12281,11 @@ typedarray@^0.0.6:
resolved "https://registry.npmmirror.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==

typescript@~4.3.5:
version "4.3.5"
resolved "https://registry.npmmirror.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==

typical@^2.6.0:
version "2.6.1"
resolved "https://registry.npmmirror.com/typical/-/typical-2.6.1.tgz#5c080e5d661cbbe38259d2e70a3c7253e873881d"
Expand Down

0 comments on commit 59fb446

Please sign in to comment.