Skip to content

Commit

Permalink
fix: added comment for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mananjadhav committed Apr 13, 2022
1 parent 4802fc5 commit f6af4f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/AddressSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ const AddressSearch = (props) => {
};

return (

/*
* The GooglePlacesAutocomplete component uses a VirtualizedList internally,
* and VirtualizedLists cannot be directly nested within other VirtualizedLists of the same orientation.
* To work around this, we wrap the GooglePlacesAutocomplete component with a horizontal ScrollView
* that has scrolling disabled and would otherwise not be needed
*/
<ScrollView
horizontal
contentContainerStyle={styles.flex1}
Expand Down

0 comments on commit f6af4f1

Please sign in to comment.