Skip to content

Commit

Permalink
chore(docs/schema): text-field's selectionHandleColor attribute (An…
Browse files Browse the repository at this point in the history
…droid only) (#1003)

Add `selectionHandleColor` attribute of text-field to documentation and
schema.

Note: this attribute will only have effect with React Native 0.74+

Co-authored-by: flochtililoch <flochtililoch@gmail.com>
  • Loading branch information
flochtililoch and flochtililoch authored Nov 25, 2024
1 parent e3bca58 commit cd18257
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
placeholder="Placeholder"
placeholderTextColor="#8D9494"
selectionColor="#4778FF"
selectionHandleColor="#4778FF"
cursorColor="#4778FF"
value=""
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
placeholder="Placeholder"
placeholderTextColor="#8D9494"
selectionColor="#4778FF"
selectionHandleColor="#4778FF"
cursorColor="#4778FF"
value=""
/>
Expand Down
8 changes: 8 additions & 0 deletions docs/reference_textfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ The text color of the placeholder string.

The highlight, selection handle and cursor color of the text input.

#### `selectionHandleColor` (Android)

| Type | Required |
| ------ | -------- |
| string | No |

Sets the color of the selection handle. Unlike `selectionColor`, it allows the selection handle color to be customized independently of the selection's color.

#### `cursorColor` (Android)

| Type | Required |
Expand Down
1 change: 1 addition & 0 deletions schema/core.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,7 @@
<xs:attribute name="placeholder" type="xs:string" />
<xs:attribute name="placeholderTextColor" type="hv:color" />
<xs:attribute name="selectionColor" type="hv:color" />
<xs:attribute name="selectionHandleColor" type="hv:color" />
<xs:attribute name="cursorColor" type="hv:color" />
<xs:attribute name="keyboard-type">
<xs:simpleType>
Expand Down

0 comments on commit cd18257

Please sign in to comment.