File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
const React = require ( 'react' ) ;
2
- const ReactNative = require ( 'react-native' ) ;
2
+ const { ViewPropTypes } = ReactNative = require ( 'react-native' ) ;
3
3
const {
4
4
StyleSheet,
5
5
Text,
@@ -17,9 +17,9 @@ const DefaultTabBar = React.createClass({
17
17
activeTextColor : React . PropTypes . string ,
18
18
inactiveTextColor : React . PropTypes . string ,
19
19
textStyle : Text . propTypes . style ,
20
- tabStyle : View . propTypes . style ,
20
+ tabStyle : ViewPropTypes . style ,
21
21
renderTab : React . PropTypes . func ,
22
- underlineStyle : View . propTypes . style ,
22
+ underlineStyle : ViewPropTypes . style ,
23
23
} ,
24
24
25
25
getDefaultProps ( ) {
Original file line number Diff line number Diff line change 1
1
const React = require ( 'react' ) ;
2
- const ReactNative = require ( 'react-native' ) ;
2
+ const { ViewPropTypes } = ReactNative = require ( 'react-native' ) ;
3
3
const {
4
4
View,
5
5
Animated,
@@ -22,12 +22,13 @@ const ScrollableTabBar = React.createClass({
22
22
activeTextColor : React . PropTypes . string ,
23
23
inactiveTextColor : React . PropTypes . string ,
24
24
scrollOffset : React . PropTypes . number ,
25
- style : View . propTypes . style ,
26
- tabStyle : View . propTypes . style ,
27
- tabsContainerStyle : View . propTypes . style ,
25
+ style : ViewPropTypes . style ,
26
+ tabStyle : ViewPropTypes . style ,
27
+ tabsContainerStyle : ViewPropTypes . style ,
28
28
textStyle : Text . propTypes . style ,
29
29
renderTab : React . PropTypes . func ,
30
- underlineStyle : View . propTypes . style ,
30
+ underlineStyle : ViewPropTypes . style ,
31
+ onScroll :React . PropTypes . func ,
31
32
} ,
32
33
33
34
getDefaultProps ( ) {
Original file line number Diff line number Diff line change 3
3
PropTypes,
4
4
Component,
5
5
} = React ;
6
- const ReactNative = require ( 'react-native' ) ;
6
+ const { ViewPropTypes } = ReactNative = require ( 'react-native' ) ;
7
7
const {
8
8
Dimensions,
9
9
View,
@@ -36,7 +36,7 @@ const ScrollableTabView = React.createClass({
36
36
onChangeTab : PropTypes . func ,
37
37
onScroll : PropTypes . func ,
38
38
renderTabBar : PropTypes . any ,
39
- style : View . propTypes . style ,
39
+ style : ViewPropTypes . style ,
40
40
contentProps : PropTypes . object ,
41
41
scrollWithoutAnimation : PropTypes . bool ,
42
42
locked : PropTypes . bool ,
You can’t perform that action at this time.
0 commit comments