babel-plugin-react-native-web-pass-classname
Pass className
property whenever style
is passed through.
It's useful when writing reusable components for react-native-web
and when using react-native
libs which were not optimized to also work for react-native-web
.
Examples
Input:
const Foo = <View style=propstitleStyle propsstyle />
Output:
const Foo = <View style=propstitleStyle propsstyle className=propsclassName />
License
MIT
(c) Decision Mapper - http://decisionmapper.com