diff options
Diffstat (limited to 'app/components/Switch.android.js')
| -rw-r--r-- | app/components/Switch.android.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/app/components/Switch.android.js b/app/components/Switch.android.js deleted file mode 100644 index cbf29c3ad9..0000000000 --- a/app/components/Switch.android.js +++ /dev/null @@ -1,25 +0,0 @@ -// @flow - -import * as React from 'react'; -import { Switch as _Switch } from 'react-native'; - -export type SwitchProps = { - isOn: boolean, - onChange?: (isOn: boolean) => void, -}; - -type State = {}; - -export default class Switch extends React.Component<SwitchProps, State> { - static defaultProps: SwitchProps = { - isOn: false, - onChange: () => {}, - }; - - state = {}; - - render() { - const { isOn, ...otherProps } = this.props; - return <_Switch {...otherProps} value={isOn} onValueChange={this.props.onChange(isOn)} />; - } -} |
