@@ -110,16 +110,18 @@ export function processStyle(
110110 result [ propName ] = 0 ;
111111 continue ;
112112 }
113- // Polyfill support for string opacity on Android
114- if ( propName === 'opacity' ) {
115- result [ propName ] = parseFloat ( styleValue ) ;
116- continue ;
117- }
118113 // Polyfill support for custom property references (do this first)
119- else if ( stringContainsVariables ( styleValue ) ) {
114+ if ( stringContainsVariables ( styleValue ) ) {
120115 result [ propName ] = CSSUnparsedValue . parse ( propName , styleValue ) ;
121116 continue ;
122- } else if (
117+ }
118+ // Polyfill support for backgroundImage using experimental API
119+ else if ( propName === 'backgroundImage' ) {
120+ result . experimental_backgroundImage = styleValue ;
121+ continue ;
122+ }
123+ // Warn for unsupported caretColor values
124+ else if (
123125 propName === 'caretColor' &&
124126 ( typeof styleValue === 'undefined' || styleValue === 'auto' )
125127 ) {
@@ -129,15 +131,17 @@ export function processStyle(
129131 ) ;
130132 }
131133 continue ;
132- } else if ( propName === 'backgroundImage' ) {
133- result . experimental_backgroundImage = styleValue ;
134- continue ;
135134 }
136135 // Workaround unsupported objectFit values
137136 else if ( propName === 'objectFit' && styleValue === 'none' ) {
138137 result [ propName ] = 'scale-down' ;
139138 continue ;
140139 }
140+ // Polyfill support for string opacity on Android
141+ else if ( propName === 'opacity' ) {
142+ result [ propName ] = parseFloat ( styleValue ) ;
143+ continue ;
144+ }
141145 // Polyfill placeContent
142146 else if ( propName === 'placeContent' ) {
143147 // None of these values are supported in RN for both properties.
0 commit comments