This repository was archived by the owner on Jan 13, 2022. It is now read-only.
File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 10
10
"dependencies" : {
11
11
"fbjs" : " ~0.8.9" ,
12
12
"immutable" : " ~3.7.6" ,
13
+ "create-react-class" : " 15.6.0" ,
13
14
"prop-types" : " ^15.5.10" ,
14
15
"react-timer-mixin" : " ^0.13.2" ,
15
16
"rebound" : " ^0.0.13"
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ var React = require('react');
48
48
var Subscribable = require ( './Subscribable' ) ;
49
49
var TimerMixin = require ( 'react-timer-mixin' ) ;
50
50
51
+ var createReactClass = require ( 'create-react-class' ) ;
51
52
var clamp = require ( './clamp' ) ;
52
53
var invariant = require ( 'fbjs/lib/invariant' ) ;
53
54
var rebound = require ( 'rebound' ) ;
@@ -298,7 +299,7 @@ var GESTURE_ACTIONS = [
298
299
* See `Navigator.SceneConfigs` for default animations and more info on
299
300
* available [scene config options](docs/navigator.html#configurescene).
300
301
*/
301
- var Navigator = React . createClass ( {
302
+ var Navigator = createReactClass ( {
302
303
303
304
propTypes : {
304
305
/**
Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ class NavigatorBreadcrumbNavigationBar extends React.Component {
93
93
titleContentForRoute : PropTypes . func ,
94
94
iconForRoute : PropTypes . func ,
95
95
} ) ,
96
- navState : React . PropTypes . shape ( {
97
- routeStack : React . PropTypes . arrayOf ( React . PropTypes . object ) ,
98
- presentedIndex : React . PropTypes . number ,
96
+ navState : PropTypes . shape ( {
97
+ routeStack : PropTypes . arrayOf ( PropTypes . object ) ,
98
+ presentedIndex : PropTypes . number ,
99
99
} ) ,
100
100
style : ViewPropTypes . style ,
101
101
} ;
You can’t perform that action at this time.
0 commit comments