react-native-ui-lib
react-native-ui-lib copied to clipboard
KeyboardRegistry and KeyboardAccessoryView do not work with recent react-native 0.74.1
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
- Sync sample test repo: https://github.com/zzorba/keyboard-registry-bug
yarn install && cd ios && pod install && cd../ && yarn ios- 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
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 do you have any solutions yet?
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
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
any solutions yet? 😿
Ive started exploring the tentap editor from 10play which has support for custom keyboards, as a possible alternative.
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?
7.20.3 is fine with RN 0.74, had to downgrade and it's working again.
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 )
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.