shirakaba / react-nativescript

React renderer for NativeScript
https://react-nativescript.netlify.com
MIT License
280 stars 14 forks source link

Can't set TextField css from nativescript-theme-core #34

Closed Lelelo1 closed 5 years ago

Lelelo1 commented 5 years ago

Can't use core themes on components:

<$TextField hint={"test"}
    className={"input input-border input-rounded"}
    onLoaded={(event) => {
        const textField = event.object as TextField;
        textField.className = "input input-border input-rounded";
    }}
/>
shirakaba commented 5 years ago

Some notes on CSS handling by Martin Yankov:

Martin: Both Angular and Vue have their own ways of declaring scoped css. Angular has the styles property on components and vue has the