File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/react-native-bottom-tabs/src Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11import React , { useLayoutEffect , useRef } from 'react' ;
22import type {
3- OnChangeTextEventDataData ,
3+ OnSearchTextChangeEventData ,
44 OnNativeLayout ,
55 OnPageSelectedEventData ,
66 OnSearchBarFocusChangeData ,
@@ -383,7 +383,11 @@ const TabView = <Route extends BaseRoute>({
383383 ) ;
384384
385385 const handleSearchTextChange = React . useCallback (
386- ( { nativeEvent : { text } } : { nativeEvent : OnChangeTextEventDataData } ) => {
386+ ( {
387+ nativeEvent : { text } ,
388+ } : {
389+ nativeEvent : OnSearchTextChangeEventData ;
390+ } ) => {
387391 onSearchTextChange ?.( text ) ;
388392 } ,
389393 [ onSearchTextChange ]
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export type TabViewItems = ReadonlyArray<{
3838 navigationBarToolbarStyle ?: string ;
3939} > ;
4040
41- export type OnChangeTextEventDataData = Readonly < {
41+ export type OnSearchTextChangeEventData = Readonly < {
4242 text : string ;
4343} > ;
4444
@@ -50,7 +50,7 @@ export interface TabViewProps extends ViewProps {
5050 items : TabViewItems ;
5151 selectedPage : string ;
5252 onPageSelected ?: DirectEventHandler < OnPageSelectedEventData > ;
53- onSearchTextChange ?: DirectEventHandler < OnChangeTextEventDataData > ;
53+ onSearchTextChange ?: DirectEventHandler < OnSearchTextChangeEventData > ;
5454 onSearchFocusChange ?: DirectEventHandler < OnSearchBarFocusChangeData > ;
5555 onTabLongPress ?: DirectEventHandler < OnPageSelectedEventData > ;
5656 onTabBarMeasured ?: DirectEventHandler < OnTabBarMeasured > ;
You can’t perform that action at this time.
0 commit comments