wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.46k stars 707 forks source link

Invariant Violation: requireNativeComponent: "KeyboardTrackingViewTemp" was not found in the UIManager. #3126

Closed Mutai-Gilbert closed 3 months ago

Mutai-Gilbert commented 3 months ago

Description

I am encountering an Invariant Violation error related to KeyboardTrackingViewTemp not being found in the UIManager. This occurs when attempting to use the KeyboardAccessoryView component from react-native-ui-lib.

Related to

Steps to reproduce

This is what I did with two different versions: v6.21.0 and v7.23.4

  1. Install react-native-ui-lib in a React Native project.
  2. Configure the project to use KeyboardAccessoryView and KeyboardUtils .
  3. Run the project on an iOS device or simulator.
  4. Observe the error upon loading the component.

Screenshot 2024-06-06 at 15 46 37

Expected behavior

The KeyboardAccessoryView should render without errors and the custom keyboard should be displayed correctly.

Actual behavior

An Invariant Violation error is thrown stating that KeyboardTrackingViewTemp was not found in the UIManager.

More Info

Code snippet

import {
    Keyboard
} from 'react-native-ui-lib';

const KeyboardAccessoryView = Keyboard.KeyboardAccessoryView;
const KeyboardUtils = Keyboard.KeyboardUtils;

Screenshots/Video

Screenshot 2024-06-06 at 16 06 35

Environment

Affected platforms

Mutai-Gilbert commented 3 months ago

I fixed the issue by reverting back to "~7.16.0" from 7.23.5 , I'm using "react-native": "~0.69.12". You have to delete the node_modules and also package-lock.json