|
1 | 1 | import React from 'react' |
2 | 2 | import PropTypes from 'prop-types' |
3 | | -import { View, Animated, ViewPropTypes, Easing } from 'react-native' |
| 3 | +import { View, Animated, Easing, ViewStyle } from 'react-native' |
4 | 4 |
|
5 | 5 | import styles from './styles' |
6 | 6 | import Segment from './Segment' |
@@ -145,27 +145,27 @@ SegmentControl.propTypes = { |
145 | 145 | /** |
146 | 146 | * Styles props of main wrapper |
147 | 147 | */ |
148 | | - style: ViewPropTypes.style, |
| 148 | + style: PropTypes.shape(ViewStyle), |
149 | 149 |
|
150 | 150 | /** |
151 | 151 | * Styles props of segment control |
152 | 152 | */ |
153 | | - segmentControlStyle: ViewPropTypes.style, |
| 153 | + segmentControlStyle: PropTypes.shape(ViewStyle), |
154 | 154 |
|
155 | 155 | /** |
156 | 156 | * Styles props of active segment |
157 | 157 | */ |
158 | | - activeSegmentStyle: ViewPropTypes.style, |
| 158 | + activeSegmentStyle: PropTypes.shape(ViewStyle), |
159 | 159 |
|
160 | 160 | /** |
161 | 161 | * Selected Segment text style. |
162 | 162 | */ |
163 | | - selectedTextStyle: ViewPropTypes.style, |
| 163 | + selectedTextStyle: PropTypes.shape(ViewStyle), |
164 | 164 |
|
165 | 165 | /** |
166 | 166 | * Unselected Segment text style. |
167 | 167 | */ |
168 | | - unSelectedTextStyle: ViewPropTypes.style, |
| 168 | + unSelectedTextStyle: PropTypes.shape(ViewStyle) |
169 | 169 | } |
170 | 170 |
|
171 | 171 | export default SegmentControl |
0 commit comments