Skip to content

Commit

Permalink
chore(docs): fix typo opactiy in code examples in `docs/interaction…
Browse files Browse the repository at this point in the history
…s/use-pressable.md`
  • Loading branch information
derek-primumco authored Jun 7, 2023
1 parent 70fee7d commit c5a12ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/interactions/use-pressable.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Item = () => {
'worklet'

return {
opactiy: pressed ? 0.5 : 1,
opacity: pressed ? 0.5 : 1,
}
})

Expand Down Expand Up @@ -58,7 +58,7 @@ const state = useMotiPressable('list', ({ pressed }) => {
'worklet'

return {
opactiy: pressed ? 0.5 : 1,
opacity: pressed ? 0.5 : 1,
}
})

Expand All @@ -78,7 +78,7 @@ const state = useMotiPressable(
'worklet'

return {
opactiy: pressed && !loading ? 0.5 : 1,
opacity: pressed && !loading ? 0.5 : 1,
}
},
[loading] // pass an empty array if there are no dependencies
Expand Down

0 comments on commit c5a12ad

Please sign in to comment.