|
8 | 8 | 'use strict' |
9 | 9 |
|
10 | 10 | import React, { Component } from 'react' |
| 11 | +import PropTypes from 'prop-types' |
11 | 12 | import { |
12 | 13 | StyleSheet, |
13 | 14 | View, |
| 15 | + ViewPropTypes, |
14 | 16 | Text, |
15 | 17 | TouchableOpacity, |
16 | 18 | } from 'react-native' |
17 | 19 |
|
18 | 20 | class CircleCheckBox extends Component { |
19 | 21 |
|
20 | 22 | static propTypes = { |
21 | | - checked: React.PropTypes.bool, |
22 | | - label: React.PropTypes.string, |
23 | | - outerSize: React.PropTypes.number, |
24 | | - filterSize: React.PropTypes.number, |
25 | | - innerSize: React.PropTypes.number, |
26 | | - outerColor: React.PropTypes.string, |
27 | | - filterColor: React.PropTypes.string, |
28 | | - innerColor: React.PropTypes.string, |
29 | | - onToggle: React.PropTypes.func.isRequired, |
30 | | - labelPosition: React.PropTypes.oneOf(['right', 'left']), |
31 | | - styleCheckboxContainer: View.propTypes.style, |
| 23 | + checked: PropTypes.bool, |
| 24 | + label: PropTypes.string, |
| 25 | + outerSize: PropTypes.number, |
| 26 | + filterSize: PropTypes.number, |
| 27 | + innerSize: PropTypes.number, |
| 28 | + outerColor: PropTypes.string, |
| 29 | + filterColor: PropTypes.string, |
| 30 | + innerColor: PropTypes.string, |
| 31 | + onToggle: PropTypes.func.isRequired, |
| 32 | + labelPosition: PropTypes.oneOf(['right', 'left']), |
| 33 | + styleCheckboxContainer: ViewPropTypes.style, |
32 | 34 | styleLabel: Text.propTypes.style, |
33 | 35 | }; |
34 | 36 |
|
|
0 commit comments