Skip to content

Support for "findNodeHandle" removed in react-native-web #4672

@alariej

Description

@alariej

When using a RNP Menu component in a react-native-web + react-native-paper project, an error is thrown by react-native-web as the Menu gets rendered: "Uncaught Error: findNodeHandle is not supported on web. Use the ref property on the component instead."

See this recent commit in react-native-web: necolas/react-native-web@9c8f89b

Environment

software version
react-native 0.79.0
react-native-web 0.20.0
react-native-paper 5.13.1
node 20

const node: any = findNodeHandle(el);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions