How do I make the View not flex and take size of the content Inside in react native.
>Solution :
You can set the alignSelf style property to flex-start. for example:
<View style={{ alignSelf: 'flex-start' }}>...</View>
alignSelfcontrols how a child aligns in the cross direction, overriding thealignItemsof the parent. It works likealign-selfin CSS (default: auto). See https://developer.mozilla.org/en-US/docs/Web/CSS/align-self for more details.
