File tree Expand file tree Collapse file tree 3 files changed +10
-20
lines changed Expand file tree Collapse file tree 3 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 5050 - name : Build package
5151 run : yarn prepare
5252
53- build-web :
54- runs-on : ubuntu-latest
55- steps :
56- - name : Checkout
57- uses : actions/checkout@v4
58-
59- - name : Setup
60- uses : ./.github/actions/setup
61-
62- - name : Build example for Web
63- run : |
64- yarn example expo export --platform web
Original file line number Diff line number Diff line change @@ -62,6 +62,12 @@ const styles = StyleSheet.create({
6262 marginTop : 2 ,
6363 textAlign : 'left' ,
6464 } ,
65+ leftAligned : {
66+ left : 15 ,
67+ } ,
68+ rightAligned : {
69+ right : 15 ,
70+ } ,
6571} ) ;
6672
6773const GooglePlacesTextInput = forwardRef (
@@ -224,7 +230,7 @@ const GooglePlacesTextInput = forwardRef(
224230 { secondaryText && (
225231 < Text
226232 style = { [
227- styles . secondaryText , // Changed from dynamicStyles to styles
233+ styles . secondaryText ,
228234 style . suggestionText ?. secondary ,
229235 isRTL && styles . rtlText ,
230236 ] }
@@ -240,12 +246,7 @@ const GooglePlacesTextInput = forwardRef(
240246 if ( ! showSuggestions || predictions . length === 0 ) return null ;
241247
242248 return (
243- < View
244- style = { [
245- styles . suggestionsContainer , // Changed from dynamicStyles to styles
246- style . suggestionsContainer ,
247- ] }
248- >
249+ < View style = { [ styles . suggestionsContainer , style . suggestionsContainer ] } >
249250 < FlatList
250251 data = { predictions }
251252 renderItem = { renderSuggestion }
@@ -278,7 +279,7 @@ const GooglePlacesTextInput = forwardRef(
278279 < ActivityIndicator
279280 style = { [
280281 styles . loadingIndicator ,
281- { [ isRTL ? 'left' : 'right' ] : 15 } ,
282+ isRTL ? styles . leftAligned : styles . rightAligned ,
282283 ] }
283284 size = { 'small' }
284285 color = { style . loadingIndicator ?. color || '#000000' } // Default color
Original file line number Diff line number Diff line change 1+ it . todo ( 'write a test' ) ;
You can’t perform that action at this time.
0 commit comments