@@ -99,30 +99,27 @@ export default class KeyboardRegistry {
99
99
100
100
/**
101
101
* Default event to be used for when an item on the keyboard has been pressed.
102
- * globalID (string) - ID that includes the componentID and the event name
103
- * (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
102
+ * componentID (string) - the ID of the keyboard.
104
103
* args (object) - data to be sent to the listener.
105
104
*/
106
- static onItemSelected = ( globalID , args ) => {
107
- KeyboardRegistry . notifyListeners ( `${ globalID } .onItemSelected` , args ) ;
105
+ static onItemSelected = ( componentID , args ) => {
106
+ KeyboardRegistry . notifyListeners ( `${ componentID } .onItemSelected` , args ) ;
108
107
} ;
109
108
110
109
/**
111
110
* Request to show the keyboard
112
- * globalID (string) - ID that includes the componentID and the event name
113
- * (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
111
+ * componentID (string) - the ID of the keyboard.
114
112
*/
115
- static requestShowKeyboard = globalID => {
116
- KeyboardRegistry . notifyListeners ( 'onRequestShowKeyboard' , { keyboardId : globalID } ) ;
113
+ static requestShowKeyboard = componentID => {
114
+ KeyboardRegistry . notifyListeners ( 'onRequestShowKeyboard' , { keyboardId : componentID } ) ;
117
115
} ;
118
116
119
117
/**
120
- * iOS only
121
- * Call to make the keyboard full screen (experimental)
122
- * globalID (string) - ID that includes the componentID and the event name
123
- * (i.e. if componentID='kb1' globalID='kb1.onItemSelected')
118
+ * iOS only (experimental)
119
+ * Call to make the keyboard full screen
120
+ * componentID (string) - the ID of the keyboard.
124
121
*/
125
- static toggleExpandedKeyboard = globalID => {
126
- KeyboardRegistry . notifyListeners ( 'onToggleExpandedKeyboard' , { keyboardId : globalID } ) ;
122
+ static toggleExpandedKeyboard = componentID => {
123
+ KeyboardRegistry . notifyListeners ( 'onToggleExpandedKeyboard' , { keyboardId : componentID } ) ;
127
124
} ;
128
125
}
0 commit comments