How can I use Gesture.RunOnJS without eslint problem. ("no-unsafe-call") #1918
Unanswered
StationSoen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm making some my own slider for my project with typescript.
my code is below here.
when execute without adding
.runOnJS(true)
,Since I understand that gesture handler and reanimated2 use worklet for UI performance, when I encounter this error, tried to add runOnJS to
gesture
, but eslinter warns meno-unsafe-call
. (https://typescript-eslint.io/rules/no-unsafe-call/)anyway it works fine.
So I added
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
to disable warning temporarily, But I wonder how to fix this problem Fundamentally.my development environment :
thanks for awesome library!
Beta Was this translation helpful? Give feedback.
All reactions