react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

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

Open zzorba opened this issue 1 year ago • 9 comments

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:

  • iOS: "KeyboardTrackingViewTemp" was not found in the UIManager
  • Android: "CustomKeyboardViewNativeTemp" was not found in the UIManager.

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

  • [X] Components
  • [X] Demo
  • [ ] Docs
  • [ ] Typings

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

  • React Native version: 0.74.1
  • React Native UI Lib version: 7.22.0

Affected platforms

  • [X] Android
  • [X] iOS
  • [ ] Web

zzorba avatar May 22 '24 16:05 zzorba

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.

zzorba avatar May 22 '24 16:05 zzorba

@zzorba do you have any solutions yet?

cashelng avatar Jun 01 '24 13:06 cashelng

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

zzorba avatar Jun 01 '24 13:06 zzorba

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

Mutai-Gilbert avatar Jun 06 '24 17:06 Mutai-Gilbert

any solutions yet? 😿

kiet-ap avatar Jun 21 '24 10:06 kiet-ap

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

zzorba avatar Jun 21 '24 12:06 zzorba

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?

ericpoulinnz avatar Jul 04 '24 20:07 ericpoulinnz

7.20.3 is fine with RN 0.74, had to downgrade and it's working again.

markmcdowell avatar Jul 11 '24 22:07 markmcdowell

The root cause is when you install react-native-ui-lib new version from npmjs, it lacks of android/ios folder from /lib . So your native-modules will never work. You can fix by getting the code from github and copy to the folder and it will work (with some other bugs )

trungthanhnt avatar Aug 15 '24 02:08 trungthanhnt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 31 '25 23:01 stale[bot]