Filex Sun
Filex Sun
@kristerkari beside viewport unit, is there any way to do screen size adaption? Im considering to use transform style to scale root container globally. I`m not sure this is a...
Hi , @kristerkari Im thinking writing a postCSS plugin to inject px2dp funciton in the CSS object. is it the right way to do?Or should i write a babel plugin,say...
Im completely new to babel plugin. Now im comparing react-native-classname-to-style and react-native-classname-to-dynamic-style to see where is the dynamic funciton. Hopefully i can figure it out. Thank you for your help.
```javascript function viewportUnitsTransform(obj, matchObject) { const hasViewportUnits = "__viewportUnits" in obj; if (!hasViewportUnits) { return obj; } return transform(omitMemoized(obj, "__viewportUnits"), matchObject); } ``` where do this '__viewportUnits' come from?
never mind, i find it in css-to-react-native-transform.
@kristerkari after days of researching, I finally add px2dp dynamic sizing function to style. I write a css-px2dp-units-transform module base on your css-viewport-units-transform to define dynamic sizing function. I also...