Skip to content

Commit 438e613

Browse files
committed
Merge branch 'master' of https://github.com/nandorojo/moti
2 parents 30b9d9e + d381768 commit 438e613

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ body:
99
options:
1010
- label: I have searched the existing issues
1111
required: true
12+
- type: checkboxes
13+
attributes:
14+
label: Do you want this issue prioritized?
15+
description: If this issue is urgent, you can add prioritize it via a <a href="https://github.com/sponsors/nandorojo?frequency=one-time&sponsor=nandorojo">sponsorship on GitHub</a>. Feel free to tag @nandorojo here in the issue description if you sponsor.
16+
options:
17+
- label: Yes, I have sponsored
18+
- label: Not urgent
1219
- type: textarea
1320
attributes:
1421
label: Current Behavior
@@ -57,8 +64,10 @@ body:
5764
label: Reproduction
5865
description: |
5966
Please add a link to an Expo Snack or a **minimal reproduction**.
67+
68+
If you can reproduce on Web, the easiest way to share a reproduction is by <a href="https://stackblitz.com/edit/nextjs-v5vkju?file=pages%2Findex.tsx">forking the StackBlitz starter</a>.
6069
61-
You can use the starter app:
70+
If the issue only happens on native, you can use the starter app:
6271
6372
```sh
6473
npx create-react-native-app -t with-moti

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The universal React Native animation library, powered by Reanimated 3.
1010

1111
- [Documentation](https://moti.fyi)
1212
- [Installation](https://moti.fyi/installation)
13-
- [Examples](https://moti.fyi/examples/hello-world)
13+
- [Examples](https://moti.fyi/examples/hello-world) *(please use Chrome, other browsers are partially supported)*
1414

1515
## Next.js Conf
1616

docs/docs/interactions/use-pressable-transition.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Then, in the `Item` component:
4646

4747
```tsx
4848
const Item = () => {
49-
const state = useMotiPressableTransition(({ pressed }) => {
49+
const transition = useMotiPressableTransition(({ pressed }) => {
5050
'worklet'
5151

5252
if (pressed) {
@@ -60,6 +60,7 @@ const Item = () => {
6060
delay: 50,
6161
}
6262
})
63+
6364
const state = useMotiPressableState(({ pressed }) => {
6465
return {
6566
translateY: pressed ? -10 : 0,

docs/docs/interactions/use-pressable.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Item = () => {
2929
'worklet'
3030

3131
return {
32-
opactiy: pressed ? 0.5 : 1,
32+
opacity: pressed ? 0.5 : 1,
3333
}
3434
})
3535

@@ -58,7 +58,7 @@ const state = useMotiPressable('list', ({ pressed }) => {
5858
'worklet'
5959

6060
return {
61-
opactiy: pressed ? 0.5 : 1,
61+
opacity: pressed ? 0.5 : 1,
6262
}
6363
})
6464

@@ -78,7 +78,7 @@ const state = useMotiPressable(
7878
'worklet'
7979

8080
return {
81-
opactiy: pressed && !loading ? 0.5 : 1,
81+
opacity: pressed && !loading ? 0.5 : 1,
8282
}
8383
},
8484
[loading] // pass an empty array if there are no dependencies

0 commit comments

Comments
 (0)