npm install --save https://github.com/commaai/comma-x-native
import X from 'comma-x-native';
const Theme = {
text: {
sizes: {
foo: 55,
},
colors: {
bar: '#011235',
}
},
}
export default X(Theme);
import X from './Theme';
...
render() {
return (
<X.Text
size='foo'
color='bar'>
Sick Text
</X.Text>
)
}
> git clone https://github.com/commaai/comma-x-native
> cd comma-x-native
> npm install
> npm test