Skip to content

Commit fd0ba8f

Browse files
committed
Add missing onSearchButtonPress option to native-stack-navigator.md
This important option was missing from the documentation. I found it in the underlying library's documentation at https://github.com/software-mansion/react-native-screens/blob/main/guides/GUIDE_FOR_LIBRARY_AUTHORS.md#screenstackheaderconfig
1 parent 926a657 commit fd0ba8f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

versioned_docs/version-6.x/native-stack-navigator.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ A callback that gets called when the cancel button is pressed.
370370

371371
A callback that gets called when the text changes. It receives the current text value of the search bar.
372372

373+
##### `onSearchButtonPress`
374+
375+
A callback that gets called when the search button is pressed. It receives the current text value of the search bar.
376+
373377
Example:
374378

375379
```js

versioned_docs/version-7.x/native-stack-navigator.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ A callback that gets called when the cancel button is pressed.
370370

371371
A callback that gets called when the text changes. It receives the current text value of the search bar.
372372

373+
##### `onSearchButtonPress`
374+
375+
A callback that gets called when the search button is pressed. It receives the current text value of the search bar.
376+
373377
Example:
374378

375379
```js

0 commit comments

Comments
 (0)