Do Gestures need to be created inside components? #3378
Answered
by
Glazzes
IslamRustamov
asked this question in
Q&A
-
If we consider an example from official documentation:
Do I necessarily need to put Can't I just:
? |
Beta Was this translation helpful? Give feedback.
Answered by
Glazzes
Feb 13, 2025
Replies: 2 comments
-
You can create them anywhere you want. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
IslamRustamov
-
While we suggest to create gestures inside components, doing it outside of them shouldn't break anything. Basically when you do: const native = Gesture.Native() you create config for your gesture. The actual handler is created by |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create them anywhere you want.