mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
Merge pull request #28376 from pavsidhu/patch-1
Add contextMenuHidden to TextInput
This commit is contained in:
5
types/react-native/index.d.ts
vendored
5
types/react-native/index.d.ts
vendored
@@ -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
|
||||
|
||||
@@ -596,6 +596,10 @@ class TextInputTest extends React.Component<{}, {username: string}> {
|
||||
multiline
|
||||
onContentSizeChange={this.handleOnContentSizeChange}
|
||||
/>
|
||||
|
||||
<TextInput
|
||||
contextMenuHidden={true}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user