From fd0ba8ffc1285af29669c84960537db039193245 Mon Sep 17 00:00:00 2001 From: Kelly Campbell Date: Mon, 1 May 2023 10:16:43 -0400 Subject: [PATCH] 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 --- versioned_docs/version-6.x/native-stack-navigator.md | 4 ++++ versioned_docs/version-7.x/native-stack-navigator.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/versioned_docs/version-6.x/native-stack-navigator.md b/versioned_docs/version-6.x/native-stack-navigator.md index 1b2dbeae544..f07f3c0f2e9 100755 --- a/versioned_docs/version-6.x/native-stack-navigator.md +++ b/versioned_docs/version-6.x/native-stack-navigator.md @@ -370,6 +370,10 @@ A callback that gets called when the cancel button is pressed. A callback that gets called when the text changes. It receives the current text value of the search bar. +##### `onSearchButtonPress` + +A callback that gets called when the search button is pressed. It receives the current text value of the search bar. + Example: ```js diff --git a/versioned_docs/version-7.x/native-stack-navigator.md b/versioned_docs/version-7.x/native-stack-navigator.md index c1deaffe0cb..7bc804ae434 100755 --- a/versioned_docs/version-7.x/native-stack-navigator.md +++ b/versioned_docs/version-7.x/native-stack-navigator.md @@ -370,6 +370,10 @@ A callback that gets called when the cancel button is pressed. A callback that gets called when the text changes. It receives the current text value of the search bar. +##### `onSearchButtonPress` + +A callback that gets called when the search button is pressed. It receives the current text value of the search bar. + Example: ```js