Skip to content

Strict Mode Errors from KeyboardProvider #1442

@travisnuttallenzo

Description

@travisnuttallenzo

Describe the bug
After enabling strict mode I get a "findHostInstance_DEPRECATED is deprecated in StrictMode." error.
I am running "react-native-keyboard-controller": "1.21.6" and "react-native-reanimated": "4.2.1" on a new Expo SDK 55 app

Code snippet
The KeyboardProvider component is highlighted in the stack trace
_layout.tsx

 <GestureHandlerRootView style={{ flex: 1 }}>
    <KeyboardProvider>
          <RootNavigator />
    </KeyboardProvider>
</GestureHandlerRootView>

To Reproduce

  • Create a new Expo SDK 55 app from the default template
  • Install latest versions of react-native-keyboard-controller and peer dependencies
  • Enable strict mode by wrapping your root component in https://react.dev/reference/react/StrictMode
  • See the reported error

Expected behavior
No strict mode related error should be printed to the console

Screenshots

Image

Metadata

Metadata

Assignees

Labels

repro providedIssue contains reproduction repository/code🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions