11'use strict' ;
22
3+ var createReactClass = require ( 'create-react-class' ) ;
4+ var PropTypes = require ( 'prop-types' ) ;
35var React = require ( 'react' ) ;
46var ReactNative = require ( 'react-native' ) ;
57var {
@@ -17,22 +19,22 @@ var ScrollableMixin = require('react-native-scrollable-mixin');
1719var screen = Dimensions . get ( 'window' ) ;
1820var ScrollViewPropTypes = ScrollView . propTypes ;
1921
20- var ParallaxView = React . createClass ( {
22+ var ParallaxView = createReactClass ( {
2123 mixins : [ ScrollableMixin ] ,
2224
2325 propTypes : {
2426 ...ScrollViewPropTypes ,
25- windowHeight : React . PropTypes . number ,
26- backgroundSource : React . PropTypes . oneOfType ( [
27- React . PropTypes . shape ( {
28- uri : React . PropTypes . string ,
27+ windowHeight : PropTypes . number ,
28+ backgroundSource : PropTypes . oneOfType ( [
29+ PropTypes . shape ( {
30+ uri : PropTypes . string ,
2931 } ) ,
3032 // Opaque type returned by require('./image.jpg')
31- React . PropTypes . number ,
33+ PropTypes . number ,
3234 ] ) ,
33- header : React . PropTypes . node ,
34- blur : React . PropTypes . string ,
35- contentInset : React . PropTypes . object ,
35+ header : PropTypes . node ,
36+ blur : PropTypes . string ,
37+ contentInset : PropTypes . object ,
3638 } ,
3739
3840 getDefaultProps : function ( ) {
0 commit comments