reuse css in a native app

0
I have a css file and I want to reuse or import this css in my native mobile app, so   How could I reuse css in a native mobile app?
asked
2 answers
0

Hi alejandro lopez,

No, you can’t reuse CSS in native directly, it is react UI so you have to recreate styling in js.

for example:

export const classname= {

    container: {

        backgroundColor: "#fec06a",

        borderRadius: 25,

        paddingRight: 8,

        paddingLeft: 8,

        paddingTop:3,

        marginTop: 4,

        marginLeft: 3,

        marginBottom : 4,

        height: 20,

        alignSelf: 'flex-start',

    }

}

answered
0

Hi alejandro lopez,

 

In native perspective we can’t able to do css. It is in type of react UI. 

Please refer below link.

https://docs.mendix.com/refguide/mobile/designing-mobile-user-interfaces/native-styling/

https://docs.mendix.com/refguide8/native-styling-refguide/

 

answered