Card

props.children
Will show up the item that wrap in the tag, e.g.
const AlarmDetail = (props) => {
return (
<Card>
<Text>{"Danny is handsome"}</Text>
</Card>
);
};
const Card = (props) => {
return (
<View style={styles.containerStyle}>{props.children}</View>
);
};

Last updated
Was this helpful?