mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Merge pull request #16813 from jeremistadler/react-native-text-patch
[React-Native] Add missing props for `Text` & `TextInput`
This commit is contained in:
18
types/react-native/index.d.ts
vendored
18
types/react-native/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for react-native 0.44
|
||||
// Project: https://github.com/facebook/react-native
|
||||
// Definitions by: Eloy Durán <https://github.com/alloy>, Fedor Nezhivoi <https://github.com/gyzerok>, HuHuanming <https://github.com/huhuanming>
|
||||
// Definitions by: Eloy Durán <https://github.com/alloy>, Fedor Nezhivoi <https://github.com/gyzerok>, HuHuanming <https://github.com/huhuanming>, Jeremi Stadler <https://github.com/jeremistadler>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -804,6 +804,17 @@ export interface TextPropertiesAndroid {
|
||||
* Lets the user select text, to use the native copy and paste functionality.
|
||||
*/
|
||||
selectable?: boolean
|
||||
|
||||
/**
|
||||
* The highlight color of the text.
|
||||
*/
|
||||
selectionColor?: string
|
||||
|
||||
/**
|
||||
* Set text break strategy on Android API Level 23+
|
||||
* default is `highQuality`.
|
||||
*/
|
||||
textBreakStrategy?: "simple" | "highQuality" | "balanced"
|
||||
}
|
||||
|
||||
// https://facebook.github.io/react-native/docs/text.html#props
|
||||
@@ -993,7 +1004,10 @@ export interface TextInputIOSProperties {
|
||||
*/
|
||||
selectionState?: DocumentSelectionState
|
||||
|
||||
|
||||
/**
|
||||
* If false, disables spell-check style (i.e. red underlines). The default value is inherited from autoCorrect
|
||||
*/
|
||||
spellCheck?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user