-
Notifications
You must be signed in to change notification settings - Fork 751
Expand file tree
/
Copy pathkeyboardAccessoryView.api.json
More file actions
58 lines (58 loc) · 2.06 KB
/
keyboardAccessoryView.api.json
File metadata and controls
58 lines (58 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "KeyboardAccessoryView",
"category": "infra",
"description": "View that allows replacing the default keyboard with other components",
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/nativeComponentScreens/keyboardAccessory/KeyboardAccessoryViewScreen.js",
"images": [
"https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/KeyboardAccessoryView/KeyboardAccessoryView.gif?raw=true"
],
"props": [
{
"name": "renderContent",
"type": "() => React.ReactElement",
"description": "Content to be rendered above the keyboard"
},
{
"name": "kbInputRef",
"type": "any",
"description": "The reference to the actual text input (or the keyboard may not reset when instructed to, etc.)",
"note": "iOS only",
"required": true
},
{
"name": "kbComponent",
"type": "string",
"description": "The keyboard ID (the componentID sent to KeyboardRegistry)"
},
{"name": "kbInitialProps", "type": "any", "description": "The props that will be sent to the KeyboardComponent"},
{
"name": "onHeightChanged",
"type": "(height: number) => void",
"description": "A callback for when the height is changed"
},
{
"name": "onItemSelected",
"type": "() => void",
"description": "Callback that will be called when an item on the keyboard has been pressed"
},
{
"name": "onRequestShowKeyboard",
"type": "() => void",
"description": "Callback that will be called if KeyboardRegistry.requestShowKeyboard is called"
},
{
"name": "onKeyboardResigned",
"type": "() => void",
"description": "Callback that will be called once the keyboard has been closed"
}
],
"snippet": [
"<KeyboardAccessoryView",
" renderContent={this.renderContent()}",
" kbInputRef={this.inputRef}",
" kbComponent={$1}",
" kbInitialProps={$2}",
" onHeightChanged={this.onHeightChanged()}",
" scrollBehavior={KeyboardAccessoryView.scrollBehaviors.NONE$3}",
"/>"
]}