create settings segment component, create new section on settings page

This commit is contained in:
mashazyu
2019-01-03 16:15:18 +01:00
parent 4a29ef6c09
commit a359f8b8fc
13 changed files with 70 additions and 62 deletions
+21
View File
@@ -0,0 +1,21 @@
import React from 'react'
import PropTypes from 'prop-types'
import { View } from 'react-native'
import AppText from '../app-text'
import styles from '../../styles'
const SettingsSegment = ({ children, ...props }) => {
return (
<View style={styles.settingsSegment}>
<AppText style={styles.settingsSegmentTitle}>{props.title}</AppText>
{children}
</View>
)
}
SettingsSegment.propTypes = {
title: PropTypes.string.isRequired
}
export default SettingsSegment