Skip to content

fix: Android bare text input ignores keyboard="number" (and every keyboard type) - #74

Open
SRWieZ wants to merge 1 commit into
NativePHP:mainfrom
SRWieZ:fix/android-bare-input-keyboard-options
Open

fix: Android bare text input ignores keyboard="number" (and every keyboard type)#74
SRWieZ wants to merge 1 commit into
NativePHP:mainfrom
SRWieZ:fix/android-bare-input-keyboard-options

Conversation

@SRWieZ

@SRWieZ SRWieZ commented Aug 24, 2026

Copy link
Copy Markdown
Member

What's wrong

keyboard="number" on <native:bare-text-input> shows the full text keyboard on Android. The filled and outlined renderers pass keyboardOptions to their text field; the bare renderer never did — so the keyboard type (and the capitalization derived from it, and the IME action face) were silently dropped.

Minimum repro:

<native:bare-text-input native:model="amount" keyboard="number" placeholder="Amount" class="flex-1" />

What this does

One line — pass keyboardOptionsFor(props) to the bare input's BasicTextField, same as the other two variants. No iOS or PHP changes.

Before / after (Android emulator, API 36, same Blade)

BareTextInputRenderer never forwarded keyboardOptionsFor(props) to its
BasicTextField, so keyboard="number" (and the capitalization derived
from the keyboard type) were silently ignored on bare inputs — the plain
text keyboard always came up. Filled and Outlined already pass it; this
brings Bare in line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant