File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-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,
@@ -23,12 +23,12 @@ const ScrollableTabBar = React.createClass({
23
23
activeTextColor : React . PropTypes . string ,
24
24
inactiveTextColor : React . PropTypes . string ,
25
25
scrollOffset : React . PropTypes . number ,
26
- style : View . propTypes . style ,
27
- tabStyle : View . propTypes . style ,
28
- tabsContainerStyle : View . propTypes . style ,
26
+ style : ViewPropTypes . style ,
27
+ tabStyle : ViewPropTypes . style ,
28
+ tabsContainerStyle : ViewPropTypes . style ,
29
29
textStyle : Text . propTypes . style ,
30
30
renderTab : React . PropTypes . func ,
31
- underlineStyle : View . propTypes . style ,
31
+ underlineStyle : ViewPropTypes . style ,
32
32
onScroll :React . PropTypes . func ,
33
33
} ,
34
34
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,
@@ -34,7 +34,7 @@ const ScrollableTabView = React.createClass({
34
34
onChangeTab : PropTypes . func ,
35
35
onScroll : PropTypes . func ,
36
36
renderTabBar : PropTypes . any ,
37
- style : View . propTypes . style ,
37
+ style : ViewPropTypes . style ,
38
38
contentProps : PropTypes . object ,
39
39
scrollWithoutAnimation : PropTypes . bool ,
40
40
locked : PropTypes . bool ,
You can’t perform that action at this time.
0 commit comments