Merge pull request #28376 from pavsidhu/patch-1

Add contextMenuHidden to TextInput
This commit is contained in:
Eloy Durán
2018-08-28 17:34:31 +02:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -1234,6 +1234,11 @@ export interface TextInputProps
*/
caretHidden?: boolean
/**
* If true, context menu is hidden. The default value is false.
*/
contextMenuHidden?: boolean
/**
* Provides an initial value that will change when the user starts typing.
* Useful for simple use-cases where you don't want to deal with listening to events

View File

@@ -596,6 +596,10 @@ class TextInputTest extends React.Component<{}, {username: string}> {
multiline
onContentSizeChange={this.handleOnContentSizeChange}
/>
<TextInput
contextMenuHidden={true}
/>
</View>
);
}