import React from 'react'; import { View, Text, Switch } from 'react-native'; import PropTypes from 'prop-types'; import styles from './styles'; import sharedStyles from '../Styles'; export default class SwitchContainer extends React.PureComponent { static propTypes = { value: PropTypes.bool, disabled: PropTypes.bool, leftLabelPrimary: PropTypes.string, leftLabelSecondary: PropTypes.string, rightLabelPrimary: PropTypes.string, rightLabelSecondary: PropTypes.string, onValueChange: PropTypes.func, testID: PropTypes.string } render() { const { value, disabled, onValueChange, leftLabelPrimary, leftLabelSecondary, rightLabelPrimary, rightLabelSecondary, testID } = this.props; return ( [ {leftLabelPrimary} {leftLabelSecondary} {rightLabelPrimary} {rightLabelSecondary} , ] ); } }