UX: hide keyboard accessory bar on iPhone#294
Open
chapoi wants to merge 3 commits into
Open
Conversation
CocoaPods (via CFPropertyList) does require 'kconv', which Ruby 3.4 removed from the standard library, so 'pod install' crashes with 'cannot load such file -- kconv'. The nkf gem ships kconv.rb and restores it.
iOS/WKWebView shows a prev/next/Done accessory bar above the keyboard for any focused web input. Set hideKeyboardAccessoryView to hide it, gated to iPhone-class idioms (!Platform.isPad) so iPad keeps its keyboard assistant/shortcut bar. Requires patching react-native-webview: on iOS 26 that bar is the inputAssistantItem, not the classic inputAccessoryView the library nulls out, so the stock setting is a no-op there. The patch clears self.inputAssistantItem in the reclassed content view's -inputAccessoryView. Verified on iPhone (iOS 18 and 26) and iPad simulators.
chapoi
force-pushed
the
ux-hide-keyboard-accessory-bar
branch
from
July 22, 2026 14:00
7c69a29 to
4dffe7b
Compare
pmusaraj
reviewed
Jul 22, 2026
| - UITextInputAssistantItem *inputAssistantItem = [_webView inputAssistantItem]; | ||
| + // iOS 26 renders the WKWebView keyboard bar via inputAssistantItem rather than | ||
| + // the classic inputAccessoryView. Clear it on self (the reclassed content view) | ||
| + // so hideKeyboardAccessoryView actually hides the bar. |
Contributor
There was a problem hiding this comment.
Is this a known issue on the react-native-webview repo?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On mobile, iOS/WKWebView adds a grey prev/next/Done accessory bar above the
keyboard for any focused editable region — including the composer's editor.
This hides that bar.
How it works
hideKeyboardAccessoryView={!Platform.isPad}=> works globally for < iOS26not the classic inputAccessoryView).
patch guards against both.)
Extra
Pod install crashed on Ruby 3.4 with cannot load such file
-- kconv, because theCFPropertyList CocoaPodsdependency requireskconv, which Ruby 3.4 removed from the standard library.This change adds the
nkfgem, which shipskconv.rband restores it.