Skip to content

Commit

Permalink
Merge pull request nandorojo#284 from ColeTownsend/patch-2
Browse files Browse the repository at this point in the history
Fix typo in use-pressable-transition page
  • Loading branch information
nandorojo authored Jun 25, 2023
2 parents 600c9fb + b2414ed commit fb8d27d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/interactions/use-pressable-transition.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Then, in the `Item` component:

```tsx
const Item = () => {
const state = useMotiPressableTransition(({ pressed }) => {
const transition = useMotiPressableTransition(({ pressed }) => {
'worklet'

if (pressed) {
Expand All @@ -60,6 +60,7 @@ const Item = () => {
delay: 50,
}
})

const state = useMotiPressableState(({ pressed }) => {
return {
translateY: pressed ? -10 : 0,
Expand Down

0 comments on commit fb8d27d

Please sign in to comment.