SolvedNativeBase Is there a way to make a card take the whole screen width?

react-native, react and native-base version

"react-native": "0.42.0",
"native-base": "2.1.0",

Expected behaviour

I'd like to make a card take the whole width of my sreen, or any other value I want.

Actual behaviour

Card has default width value, that I don't know how to change

Thanks ;)

7 Answers

✔️Accepted Answer

@hpbl just override the style of component. The spaces are due to the default margin given to the card.

To take the whole width

<Card style={{marginLeft:0,marginRight:0}}/>

To set a custom width

<Card style={{width:100}}/>

More Issues: