From 3b35f38359898d740450e4e17301983a019a39e1 Mon Sep 17 00:00:00 2001 From: pinpong Date: Tue, 14 Feb 2023 12:42:32 +0100 Subject: [PATCH] added contentContainerStyle support --- GooglePlacesAutocomplete.d.ts | 1 + GooglePlacesAutocomplete.js | 3 +++ 2 files changed, 4 insertions(+) diff --git a/GooglePlacesAutocomplete.d.ts b/GooglePlacesAutocomplete.d.ts index 15d5a8a..e3d6d7f 100644 --- a/GooglePlacesAutocomplete.d.ts +++ b/GooglePlacesAutocomplete.d.ts @@ -347,6 +347,7 @@ interface Styles { textInputContainer: StyleProp; textInput: StyleProp; loader: StyleProp; + listContentContainer: StyleProp; listView: StyleProp; predefinedPlacesDescription: StyleProp; poweredContainer: StyleProp; diff --git a/GooglePlacesAutocomplete.js b/GooglePlacesAutocomplete.js index de3099a..d07a983 100644 --- a/GooglePlacesAutocomplete.js +++ b/GooglePlacesAutocomplete.js @@ -41,6 +41,7 @@ const defaultStyles = { flex: 1, marginBottom: 5, }, + listContentContainer: {}, listView: {}, row: { backgroundColor: '#FFFFFF', @@ -760,6 +761,8 @@ export const GooglePlacesAutocomplete = forwardRef((props, ref) => {