Skip to content

KeyboardAvoidingLegendList crashes with "function is not a worklet" error (v3 beta) #388

@CavalcanteLeo

Description

@CavalcanteLeo

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

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions