taofed / react-web

A framework for building web apps with React Native compatible API.
Other
3.36k stars 449 forks source link

fix underlay style #241

Closed mvayngrib closed 7 years ago

mvayngrib commented 7 years ago

setValueForStyles ends up iterating this like an object and breaks my dear sensitive firefox

mvayngrib commented 7 years ago

don't merge yet

mvayngrib commented 7 years ago

ok, this works better. Seems flattenStyle is needed as there is no preprocessing of the style in setNativeProps, and props.style can legally be an object or an array. Firefox throws errors like: CSS2Properties doesn't have an indexed property setter for '0' when an Array sneaks into the CSSPropertyOperations.setValueForStyles loop