import React from 'react' import { StyleSheet, Switch, View } from 'react-native' import PropTypes from 'prop-types' import AppText from './app-text' import { Containers } from '../../styles/redesign' const AppSwitch = ({ onToggle, text, value }) => { return ( {text} ) } AppSwitch.propTypes = { onToggle: PropTypes.func.isRequired, text: PropTypes.string, value: PropTypes.bool.isRequired } const styles = StyleSheet.create({ container: { ...Containers.rowContainer }, switch: { flex: 1, }, textContainer: { flex: 4, } }) export default AppSwitch