Skip to content

findDOMNode is deprecated - Console warning on web using expo #2233

@snakone

Description

@snakone

Feature Request

warning on console while using expo web - findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node

Why it is needed

it's not really needed since the package is working, just wanted to let you know. i saw this error with other packages and i think it doesnt show on production build

Possible implementation

update the dependencies to see if the use ref directly instead of findDOMNode

Code sample

Documentation basic example will work

"react-native-reanimated": "~3.16.1",
"@gorhom/bottom-sheet": "^5.1.2",
"react-native-gesture-handler": "~2.20.2",

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestinvalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions