Update about.js with settingsSegment and give it last prop
This commit is contained in:
@@ -6,8 +6,10 @@ import AppText from '../app-text'
|
||||
import styles from '../../styles'
|
||||
|
||||
const SettingsSegment = ({ children, ...props }) => {
|
||||
const style = [styles.settingsSegment, props.style]
|
||||
if (props.last) style.push(styles.settingsSegmentLast)
|
||||
return (
|
||||
<View style={[styles.settingsSegment, props.style]}>
|
||||
<View style={style}>
|
||||
<AppText style={styles.settingsSegmentTitle}>{props.title}</AppText>
|
||||
{children}
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user