You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that the KeyboardAccessoryView component no longer works as expected. When toggle to a custom keyboard, I was getting this following error. After seeing this, I decided to clone this repo to run the demo and I saw the same exact issue.
ERROR Error: Argument appears to not be a ReactComponent. Keys: isFocused,focus,blur,clear,validate,isValid
I have not tested on Android, but I'd assume it wouldn't work there either if what's mentioned above is the cause of this issue.
Related to
Components
Demo
Docs
Typings
Steps to reproduce
clone and install dependencies for react-native-ui-lib
run yarn run ios
go to KeyboardAccessoryView screen in app
tap either of the keyboard accessory buttons to toggle the keyboard
see error
Expected behavior
When the keyboard toggle button is tapped, the custom keyboard should be shown
Actual behavior
When the keyboard is toggled, you get this error:
ERROR Error: Argument appears to not be a ReactComponent. Keys: isFocused,focus,blur,clear,validate,isValid
This error is located at:
in IGNORE (created by CustomKeyboardView)
in CustomKeyboardView (created by KeyboardAccessoryView)
in KeyboardTrackingViewTemp (created by KeyboardTrackingView)
in KeyboardTrackingView
in _c (created by KeyboardAccessoryView)
in KeyboardAccessoryView (created by KeyboardAccessoryViewScreen)
in RCTView (created by View)
in View
in View (created by KeyboardAccessoryViewScreen)
in KeyboardAccessoryViewScreen (created by WrappedComponent)
in WrappedComponent
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in unicorn.nativeComponents.KeyboardAccessoryViewScreen(RootComponent), js engine: hermes
Description
It appears that the
KeyboardAccessoryView
component no longer works as expected. When toggle to a custom keyboard, I was getting this following error. After seeing this, I decided to clone this repo to run the demo and I saw the same exact issue.I looked a bit more into it and tracked the issue down to this line:
https://github.com/wix/react-native-ui-lib/blob/master/lib/components/Keyboard/KeyboardInput/TextInputKeyboardManager/TextInputKeyboardManager.ios.ts#L47
I think it's most likely related to the recent changes regarding
findNodeHandle
, which is mentioned to be incompatible with React 18:https://reactnative.dev/docs/0.70/new-architecture-library-intro#preparing-your-javascript-codebase-for-the-new-react-native-renderer-fabric
I have not tested on Android, but I'd assume it wouldn't work there either if what's mentioned above is the cause of this issue.
Related to
Steps to reproduce
react-native-ui-lib
yarn run ios
KeyboardAccessoryView
screen in appExpected behavior
When the keyboard toggle button is tapped, the custom keyboard should be shown
Actual behavior
When the keyboard is toggled, you get this error:
More Info
Code snippet
No changes from
master
branchScreenshots/Video
Simulator.Screen.Recording.-.iPhone.14.-.2023-11-28.at.18.38.14.mp4
Environment
Affected platforms
The text was updated successfully, but these errors were encountered: