import * as React from 'react' import { Text, View, ViewStyle } from 'react-native' import Switch from "./Switch"; interface MaterialSwitchProps { textFont?:string, textColor?:string, text?:string, color?:string onValueChanged?(value:boolean):void, style?: ViewStyle } export default class MaterialSwitch extends React.Component { static defaultProps = { onValueChanged : () => {} }; render () { return ( {this.props.text&& {this.props.text} } this.props.onValueChanged(value)} color={this.props.color}/> ) } }