File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
vendor/react-native-css-media-query-processor Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ export function process (
3131 res [ propName ] = res [ propName ] . flat ( 10 )
3232 res [ propName ] = Object . assign ( { } , ...res [ propName ] )
3333 }
34+ if ( typeof res [ propName ] !== 'object' ) continue
3435 // force transform to 'px' some units in pure React environment
3536 if ( isPureReact ( ) ) {
3637 // atm it's only 'lineHeight' property
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export function process (obj, matchObject) {
3636 matchObject . type = 'screen'
3737 }
3838
39- const isMatch = mediaQuery . match ( obj . __mediaQueries [ key ] , matchObject )
39+ const isMatch = mediaQuery ( obj . __mediaQueries [ key ] , matchObject )
4040 if ( isMatch ) {
4141 res = merge ( res , obj [ key ] )
4242 }
You can’t perform that action at this time.
0 commit comments