Skip to content

Commit 6f2f35f

Browse files
committed
v1.0.10
1 parent ad8c478 commit 6f2f35f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-animated-segment-control",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "A custom `SegmentControl` component, pretty much similar to native's SegmentControl but with animation",
55
"main": "index.js",
66
"scripts": {

src/SegmentControl/Segment.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import { Text, TouchableOpacity, ViewPropTypes } from 'react-native'
3+
import { Text, TouchableOpacity, ViewStyle } from 'react-native'
44

55
import styles from './styles'
66

@@ -19,9 +19,9 @@ Segment.defaultProps = {
1919

2020
Segment.propTypes = {
2121
title: PropTypes.string.isRequired,
22-
textStyle: ViewPropTypes.style.isRequired,
22+
textStyle: PropTypes.shape(ViewStyle).isRequired,
2323
onPress: PropTypes.func.isRequired,
24-
style: ViewPropTypes.style
24+
style: PropTypes.shape(ViewStyle)
2525
}
2626

2727
export default Segment

src/SegmentControl/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import PropTypes from 'prop-types'
3-
import { View, Animated, ViewPropTypes, Easing } from 'react-native'
3+
import { View, Animated, Easing, ViewStyle } from 'react-native'
44

55
import styles from './styles'
66
import Segment from './Segment'
@@ -145,27 +145,27 @@ SegmentControl.propTypes = {
145145
/**
146146
* Styles props of main wrapper
147147
*/
148-
style: ViewPropTypes.style,
148+
style: PropTypes.shape(ViewStyle),
149149

150150
/**
151151
* Styles props of segment control
152152
*/
153-
segmentControlStyle: ViewPropTypes.style,
153+
segmentControlStyle: PropTypes.shape(ViewStyle),
154154

155155
/**
156156
* Styles props of active segment
157157
*/
158-
activeSegmentStyle: ViewPropTypes.style,
158+
activeSegmentStyle: PropTypes.shape(ViewStyle),
159159

160160
/**
161161
* Selected Segment text style.
162162
*/
163-
selectedTextStyle: ViewPropTypes.style,
163+
selectedTextStyle: PropTypes.shape(ViewStyle),
164164

165165
/**
166166
* Unselected Segment text style.
167167
*/
168-
unSelectedTextStyle: ViewPropTypes.style,
168+
unSelectedTextStyle: PropTypes.shape(ViewStyle)
169169
}
170170

171171
export default SegmentControl

0 commit comments

Comments
 (0)