Skip to content

Caret size is wrong when setting larger font on TextInput #1395

@ospfranco

Description

@ospfranco

Environment

react-native -v: 0.68.3
npm ls react-native-macos: 0.68.34
node -v: 16
npm -v:
yarn --version: 1
xcodebuild -version:

Steps to reproduce the bug

When setting the font size on a text input the text and placeholder get a larger size but the caret remains small:

<TextInput
  autoFocus
  // @ts-expect-error
  enableFocusRing={false}
  value={store.ui.query}
  onChangeText={store.ui.setQuery}
  ref={inputRef}
  style={tw.style(`flex-1 text-lg`)}
  caretHidden
  placeholderTextColor={tw.color('text-gray-400')}
  placeholder={'Search for something...'}
  selectionColor={tw.color('text-accent')}
/>

Screenshot 000924

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions