Skip to content

fix(android): apply keyboardOptions to BareTextInputRenderer - #51

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

fix(android): apply keyboardOptions to BareTextInputRenderer#51
wilsonatb wants to merge 1 commit into
NativePHP:mainfrom
wilsonatb:fix/android-bare-text-keyboard-options

Conversation

@wilsonatb

Copy link
Copy Markdown

This PR fixes an issue on Android where the BareTextInputRenderer failed to display the correct IME keyboard types (e.g., decimal, number).

The BasicTextField was being built without keyboardOptions, meaning the keyboard prop was parsed but never actually sent to the IME, resulting in the default text keyboard always being shown.

Changes

  • Added import androidx.compose.foundation.text.KeyboardOptions to BareTextInputRenderer.kt.
  • Injected keyboardOptions = keyboardOptionsFor(props) into the BasicTextField constructor.

Notes

  • The outlined and filled renderers already implement this correctly.
  • iOS is completely unaffected, as it delegates to NativeUITextInputCore which correctly applies .keyboardType natively.

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