wix / react-native-ui-lib

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

KeyboardRegistry and KeyboardAccessoryView do not work with recent react-native 0.74.1 #3085

Open zzorba opened 1 month ago

zzorba commented 1 month ago

Description

Created a new react-native project, setup reanimated + gesture-handler + react-native-ui-lib.

I copied over the demo app for KeyboardRegistry, but it fails at runtime (on both iOS and Android) complaining that either:

I've tried in more complex projects as well, but this very simple one seems to no longer have access to its native modules.

Related to

Steps to reproduce

  1. Sync sample test repo: https://github.com/zzorba/keyboard-registry-bug
  2. yarn install && cd ios && pod install && cd../ && yarn ios
  3. App crashes at startup.

Expected behavior

The KeyboardRegistry is usable.

Actual behavior

Crash due to missing NativeModules?

More Info

Running latest react-native and building with XCode 15.3 on IOS, though it happens as well on android.

Environment

Affected platforms

zzorba commented 1 month ago

It seems like this has happened in the past (https://github.com/wix/react-native-ui-lib/issues/2204), but given it is still happening I figured it was worth opening a new issue with a minimal repo.

cashelng commented 1 month ago

@zzorba do you have any solutions yet?

zzorba commented 1 month ago

I do not unfortunately. I've shifted to work on other things in the meantime. There don't seem to be any replacement libraries for it at this time

Mutai-Gilbert commented 1 month 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

kiet-ap commented 2 weeks ago

any solutions yet? 😿

zzorba commented 2 weeks ago

Ive started exploring the tentap editor from 10play which has support for custom keyboards, as a possible alternative.

ericpoulinnz commented 2 days ago

Not supporting RN 0.74 is stopping us from using this library.

@ethanshar is there any plans on looking into this issue? I note it's one of the top reacted issues in a very short time, so it must be a higher priority?