Last updated 6 years ago
Was this helpful?
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> ); };