File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -472,7 +472,13 @@ const GooglePlacesTextInput = forwardRef<
472
472
} , 10 ) ;
473
473
} ;
474
474
475
- const renderSuggestion = ( { item } : { item : PredictionItem } ) => {
475
+ const renderSuggestion = ( {
476
+ item,
477
+ index,
478
+ } : {
479
+ item : PredictionItem ;
480
+ index : number ;
481
+ } ) => {
476
482
const { mainText, secondaryText } = item . placePrediction . structuredFormat ;
477
483
478
484
// Safely extract backgroundColor from style
@@ -495,6 +501,7 @@ const GooglePlacesTextInput = forwardRef<
495
501
accessibilityLabel = { accessibilityLabel }
496
502
accessibilityHint = "Double tap to select this place"
497
503
style = { [
504
+ index > 0 ? styles . separatorLine : { } ,
498
505
styles . suggestionItem ,
499
506
{ backgroundColor } ,
500
507
style . suggestionItem ,
@@ -698,8 +705,10 @@ const styles = StyleSheet.create({
698
705
} ,
699
706
suggestionItem : {
700
707
padding : 10 ,
701
- borderBottomWidth : StyleSheet . hairlineWidth ,
702
- borderBottomColor : '#c8c7cc' ,
708
+ } ,
709
+ separatorLine : {
710
+ borderTopWidth : StyleSheet . hairlineWidth ,
711
+ borderTopColor : '#c8c7cc' ,
703
712
} ,
704
713
mainText : {
705
714
fontSize : 16 ,
You can’t perform that action at this time.
0 commit comments