diff --git a/example/App.tsx b/example/App.tsx deleted file mode 100644 index c0598af7da1a5276adb021246fe5f472da95984d..0000000000000000000000000000000000000000 --- a/example/App.tsx +++ /dev/null @@ -1,222 +0,0 @@ -/** - * Sample React Native App - * https://github.com/facebook/react-native - * - * @lint-ignore-every XPLATJSCOPYRIGHT1 - */ - -import React, {Component} from 'react'; -import {Platform, StyleSheet, Text, View, Button} from 'react-native'; - -import CheckBox from '@react-native-community/checkbox'; - -const instructions = Platform.select({ - ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', - android: - 'Double tap R on your keyboard to reload,\n' + - 'Shake or press menu button for dev menu!', -}); - -const isIOS = Platform.OS === 'ios'; - -type Props = {}; -type State = { - value0: boolean; - value1: boolean; - value2: boolean; - value3: boolean; - value4: boolean; - lineWidth: number; -}; - -export default class App extends Component { - constructor(props: Props) { - super(props); - - this.state = { - value0: true, - value1: false, - value2: true, - value3: false, - value4: false, - lineWidth: 10, - }; - } - - renderForIOS() { - return ( - - {`[value: ${this.state.value0}]`} - - this.setState({ - value0: value, - }) - } - /> - {`[value: ${this.state.value4}]`} - - this.setState({ - value4: value, - }) - } - /> - {`[value: ${this.state.value3}]`} - - this.setState({ - value3: value, - }) - } - /> - {`[value: ${this.state.value2}]`} - - this.setState({ - value2: value, - }) - } - onAnimationDidStop={() => console.log('onAnimationDidStopEvent')} - lineWidth={2} - hideBox={false} - boxType={'circle'} - tintColors={'#9E663C'} - onCheckColor={'#6F763F'} - onFillColor={'#4DABEC'} - onTintColor={'#F4DCF8'} - animationDuration={0.5} - disabled={false} - onAnimationType={'bounce'} - offAnimationType={'stroke'} - /> -