@@ -16,23 +16,25 @@ var _mixinsDraggable = require('./mixins/draggable');
1616
1717var _mixinsDraggable2 = _interopRequireDefault ( _mixinsDraggable ) ;
1818
19- var _reactNative = require ( 'react-native' ) ;
19+ var _react = require ( 'react' ) ;
20+
21+ var _react2 = _interopRequireDefault ( _react ) ;
2022
21- var _reactNative2 = _interopRequireDefault ( _reactNative ) ;
23+ var _reactNative = require ( 'react-native' ) ;
2224
23- exports [ 'default' ] = _reactNative2 [ 'default' ] . createClass ( {
25+ exports [ 'default' ] = _react2 [ 'default' ] . createClass ( {
2426 displayName : 'GestureView' ,
2527
2628 mixins : [ ( 0 , _mixinsEvents2 [ 'default' ] ) ( [ 'onLayout' ] ) , ( 0 , _mixinsDraggable2 [ 'default' ] ) ( ) ] ,
2729
2830 propTypes : {
29- gestures : _reactNative . PropTypes . array . isRequired ,
30- onError : _reactNative . PropTypes . func . isRequired ,
31- toStyle : _reactNative . PropTypes . func . isRequired ,
32- style : _reactNative . PropTypes . any ,
33- children : _reactNative . PropTypes . array ,
34- type : _reactNative . PropTypes . oneOf ( [ 'View' , 'Image' ] ) ,
35- source : _reactNative . PropTypes . any
31+ gestures : _react . PropTypes . array . isRequired ,
32+ onError : _react . PropTypes . func . isRequired ,
33+ toStyle : _react . PropTypes . func . isRequired ,
34+ style : _react . PropTypes . any ,
35+ children : _react . PropTypes . array ,
36+ type : _react . PropTypes . oneOf ( [ 'View' , 'Image' ] ) ,
37+ source : _react . PropTypes . any
3638 } ,
3739
3840 componentDidMount : function componentDidMount ( ) {
@@ -63,14 +65,14 @@ exports['default'] = _reactNative2['default'].createClass({
6365 type : this . props . type || 'View' ,
6466 source : this . props . source
6567 } , this . gestureResponder . panHandlers ) ;
66- return _reactNative2 [ 'default' ] . createElement (
68+ return _react2 [ 'default' ] . createElement (
6769 _reactNative . View ,
6870 null ,
69- this . props . type === 'View' ? _reactNative2 [ 'default' ] . createElement (
71+ this . props . type === 'View' ? _react2 [ 'default' ] . createElement (
7072 _reactNative . View ,
7173 props ,
7274 this . props . children
73- ) : _reactNative2 [ 'default' ] . createElement ( _reactNative . Image , props )
75+ ) : _react2 [ 'default' ] . createElement ( _reactNative . Image , props )
7476 ) ;
7577 }
7678} ) ;
0 commit comments