Browse Source

Fix error in docs: onSearch event handler (#3605)

* Update events.md

* change query param to text
Nicolás López Jullian 6 years ago
parent
commit
a8bb89d444
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      docs/docs/events.md

+ 4
- 4
docs/docs/events.md View File

135
 |:-:|:--|
135
 |:-:|:--|
136
 |**buttonId**|`buttonId`: `id` of the pressed button|
136
 |**buttonId**|`buttonId`: `id` of the pressed button|
137
 
137
 
138
-## onSearchBarUpdated (iOS 11+ only)
138
+## searchBarUpdated (iOS 11+ only)
139
 Called when a SearchBar from NavigationBar gets updated.
139
 Called when a SearchBar from NavigationBar gets updated.
140
 
140
 
141
 ```js
141
 ```js
145
     Navigation.events().bindComponent(this);
145
     Navigation.events().bindComponent(this);
146
   }
146
   }
147
 
147
 
148
-  onSearchBarUpdated({ query, isFocused }) {
148
+  searchBarUpdated({ text, isFocused }) {
149
 
149
 
150
   }
150
   }
151
 }
151
 }
152
 ```
152
 ```
153
 
153
 
154
-## onSearchBarCancelPressed (iOS 11+ only)
154
+## searchBarCancelPressed (iOS 11+ only)
155
 Called when the cancel button on the SearchBar from NavigationBar gets pressed.
155
 Called when the cancel button on the SearchBar from NavigationBar gets pressed.
156
 
156
 
157
 ```js
157
 ```js
161
     Navigation.events().bindComponent(this);
161
     Navigation.events().bindComponent(this);
162
   }
162
   }
163
 
163
 
164
-  onSearchBarCancelPressed() {
164
+  searchBarCancelPressed() {
165
 
165
 
166
   }
166
   }
167
 }
167
 }