@@ -80,23 +80,23 @@ interface GooglePlacesTextInputProps {
80
80
languageCode ?: string ;
81
81
includedRegionCodes ?: string [ ] ;
82
82
types ?: string [ ] ;
83
- biasPrefixText ?: ( text : string ) => string ; // ✅ Function that transforms text
83
+ biasPrefixText ?: ( text : string ) => string ;
84
84
minCharsToFetch ?: number ;
85
- onPlaceSelect : ( place : Place , sessionToken ?: string | null ) => void ; // ✅ Remove | null
85
+ onPlaceSelect : ( place : Place , sessionToken ?: string | null ) => void ;
86
86
onTextChange ?: ( text : string ) => void ;
87
87
debounceDelay ?: number ;
88
88
showLoadingIndicator ?: boolean ;
89
89
showClearButton ?: boolean ;
90
90
forceRTL ?: boolean ;
91
91
style ?: GooglePlacesTextInputStyles ;
92
92
hideOnKeyboardDismiss ?: boolean ;
93
+ scrollEnabled ?: boolean ;
94
+ nestedScrollEnabled ?: boolean ;
93
95
fetchDetails ?: boolean ;
94
- detailsProxyUrl ?: string | null ; // ✅ Add | null to match JS
96
+ detailsProxyUrl ?: string | null ;
95
97
detailsFields ?: string [ ] ;
96
98
onError ?: ( error : any ) => void ;
97
- enableDebug ?: boolean ; // ✅ Add debug prop
98
- scrollEnabled ?: boolean ;
99
- nestedScrollEnabled ?: boolean ;
99
+ enableDebug ?: boolean ;
100
100
}
101
101
102
102
interface GooglePlacesTextInputRef {
@@ -132,13 +132,13 @@ const GooglePlacesTextInput = forwardRef<
132
132
forceRTL = undefined ,
133
133
style = { } ,
134
134
hideOnKeyboardDismiss = false ,
135
+ scrollEnabled = true ,
136
+ nestedScrollEnabled = true ,
135
137
fetchDetails = false ,
136
138
detailsProxyUrl = null ,
137
139
detailsFields = [ ] ,
138
140
onError,
139
141
enableDebug = false ,
140
- scrollEnabled = true ,
141
- nestedScrollEnabled = true ,
142
142
} ,
143
143
ref
144
144
) => {
@@ -581,10 +581,10 @@ const GooglePlacesTextInput = forwardRef<
581
581
renderItem = { renderSuggestion }
582
582
keyExtractor = { ( item ) => item . placePrediction . placeId }
583
583
keyboardShouldPersistTaps = "always"
584
- style = { style . suggestionsList }
585
584
scrollEnabled = { scrollEnabled }
586
- bounces = { false }
587
585
nestedScrollEnabled = { nestedScrollEnabled }
586
+ bounces = { false }
587
+ style = { style . suggestionsList }
588
588
/>
589
589
</ View >
590
590
) }
0 commit comments