Merge pull request #16813 from jeremistadler/react-native-text-patch

[React-Native] Add missing props for `Text` & `TextInput`
This commit is contained in:
Eloy Durán
2017-05-29 22:38:54 +02:00
committed by GitHub

View File

@@ -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
}
/**