wix / react-native-ui-lib

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

Cannot read property 'KeyboardTrackingScrollBehaviorNone' of null - NativeModules #3048

Open Mutai-Gilbert opened 6 months ago

Mutai-Gilbert commented 6 months ago

Description

I'm launching my App with the use of "react-native-ui-lib": "~5.22.0" and getting the following exception on launch: Screenshot_2024-04-28_at_4 16 47_PM

The application throws a TypeError when attempting to access the 'KeyboardTrackingScrollBehaviorNone' property, indicating that the object being referenced is null at the time of property access. This issue occurs when using the Hermes JavaScript engine in a React Native application, potentially during keyboard events or when modifying scroll behaviors.

Related to

Steps to reproduce

  1. Clone the app
  2. Change to the project directory and run npm to install dependencies
  3. Run npx pod-install to fetch and install pod packages and dependencies
  4. Run npx react-native start --reset-cache to start the application

Expected behavior

The application should start without crashing

Actual behavior

An error is thrown, and the app crashes.

Affected platforms

BjornSodenberg commented 2 months ago

same problem