mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-08 09:17:06 +08:00
[react-native] Added two TextInput Android properties
Added two properties to the TextInputAndroidProperties interface: - disableFullscreenUI - textBreakStrategy
This commit is contained in:
14
types/react-native/index.d.ts
vendored
14
types/react-native/index.d.ts
vendored
@@ -1020,6 +1020,14 @@ export interface TextInputIOSProperties {
|
||||
*/
|
||||
export interface TextInputAndroidProperties {
|
||||
|
||||
/**
|
||||
* When false, if there is a small amount of space available around a text input (e.g. landscape orientation on a phone),
|
||||
* the OS may choose to have the user edit the text inside of a full screen text input mode.
|
||||
* When true, this feature is disabled and users will always edit the text directly inside of the text input.
|
||||
* Defaults to false.
|
||||
*/
|
||||
disableFullscreenUI?: boolean
|
||||
|
||||
/**
|
||||
* If defined, the provided image resource will be rendered on the left.
|
||||
*/
|
||||
@@ -1042,6 +1050,12 @@ export interface TextInputAndroidProperties {
|
||||
*/
|
||||
returnKeyLabel?: string
|
||||
|
||||
/**
|
||||
* Set text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced
|
||||
* The default value is simple.
|
||||
*/
|
||||
textBreakStrategy?: "simple" | "highQuality" | "balanced"
|
||||
|
||||
/**
|
||||
* The color of the textInput underline.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user