The KeyboardAvoidingLegendList component crashes immediately with:
[Reanimated] Passed a function that is not a worklet. Please provide a worklet function.
The issue is that the keyboard handler callbacks passed to useKeyboardHandler
from react-native-keyboard-controller are missing the 'worklet' directive.
Versions:
- @legendapp/list: 3.0.0-beta.27
- react-native-keyboard-controller: 1.20.6
- react-native-reanimated: 4.x
- babel plugin: react-native-worklets/plugin
Stack trace points to: keyboard.native.bundle → useKeyboardHandler → useHandler
