@times-components/image 6.8.15 → 6.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [6.9.0](https://github.com/newsuk/times-components/compare/@times-components/image@6.8.15...@times-components/image@6.9.0) (2022-03-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **TDP-1413:** removed react native from some components ([#2891](https://github.com/newsuk/times-components/issues/2891)) ([3130586](https://github.com/newsuk/times-components/commit/313058621ff0c6eb5f0ca0bf0d605a8fb1522251))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [6.8.15](https://github.com/newsuk/times-components/compare/@times-components/image@6.8.14...@times-components/image@6.8.15) (2022-02-16)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @times-components/image
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@times-components/image",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.0",
|
|
4
4
|
"main": "dist/index",
|
|
5
5
|
"dev": "src/index",
|
|
6
6
|
"scripts": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@times-components/eslint-config-thetimes": "0.8.18",
|
|
38
38
|
"@times-components/jest-configurator": "2.8.0",
|
|
39
39
|
"@times-components/jest-serializer": "3.2.29",
|
|
40
|
-
"@times-components/storybook": "4.
|
|
40
|
+
"@times-components/storybook": "4.2.0",
|
|
41
41
|
"@times-components/test-utils": "2.3.10",
|
|
42
42
|
"@times-components/webpack-configurator": "2.0.29",
|
|
43
43
|
"babel-jest": "24.8.0",
|
|
@@ -60,11 +60,10 @@
|
|
|
60
60
|
"webpack-cli": "3.3.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@times-components/link": "3.
|
|
64
|
-
"@times-components/styleguide": "3.38.
|
|
63
|
+
"@times-components/link": "3.7.0",
|
|
64
|
+
"@times-components/styleguide": "3.38.30",
|
|
65
65
|
"@times-components/svgs": "2.7.36",
|
|
66
|
-
"@times-components/utils": "6.
|
|
67
|
-
"hoist-non-react-statics": "3.3.2",
|
|
66
|
+
"@times-components/utils": "6.6.0",
|
|
68
67
|
"prop-types": "15.7.2",
|
|
69
68
|
"styled-components": "4.3.2"
|
|
70
69
|
},
|
|
@@ -81,5 +80,5 @@
|
|
|
81
80
|
"publishConfig": {
|
|
82
81
|
"access": "public"
|
|
83
82
|
},
|
|
84
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "579805087a0e98d7c308d15f65e21a0e860d737b"
|
|
85
84
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNativeSafeArea=_interopRequireDefault(require("./react-native-safe-area"));var _default=_reactNativeSafeArea.default;exports.default=_default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.getInset=getInset;exports.getStatusBarHeight=getStatusBarHeight;exports.withSafeArea=exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _hoistNonReactStatics=_interopRequireDefault(require("hoist-non-react-statics"));var _withOrientation=_interopRequireDefault(require("./withOrientation"));var _jsxFileName="/home/circleci/project/packages/image/src/safeAreaView/react-native-safe-area.js";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly){symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});}keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys(Object(source),true).forEach(function(key){(0,_defineProperty2.default)(target,key,source[key]);});}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));}else{ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}}return target;}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var X_WIDTH=375;var X_HEIGHT=812;var XSMAX_WIDTH=414;var XSMAX_HEIGHT=896;var PAD_WIDTH=768;var PAD_HEIGHT=1024;var IPADPRO11_WIDTH=834;var IPADPRO11_HEIGHT=1194;var IPADPRO129_HEIGHT=1024;var IPADPRO129_WIDTH=1366;var getResolvedDimensions=function getResolvedDimensions(){var _Dimensions$get=_reactNative.Dimensions.get("window"),width=_Dimensions$get.width,height=_Dimensions$get.height;if(width===0&&height===0)return _reactNative.Dimensions.get("screen");return{width:width,height:height};};var _getResolvedDimension=getResolvedDimensions(),D_HEIGHT=_getResolvedDimension.height,D_WIDTH=_getResolvedDimension.width;var PlatformConstants=_reactNative.Platform.constants||{};var _ref=PlatformConstants.reactNativeVersion||{},_ref$minor=_ref.minor,minor=_ref$minor===void 0?0:_ref$minor;var isIPhoneX=function(){if(_reactNative.Platform.OS==="web")return false;return _reactNative.Platform.OS==="ios"&&(D_HEIGHT===X_HEIGHT&&D_WIDTH===X_WIDTH||D_HEIGHT===X_WIDTH&&D_WIDTH===X_HEIGHT)||D_HEIGHT===XSMAX_HEIGHT&&D_WIDTH===XSMAX_WIDTH||D_HEIGHT===XSMAX_WIDTH&&D_WIDTH===XSMAX_HEIGHT;}();var isNewIPadPro=function(){if(_reactNative.Platform.OS!=="ios")return false;return D_HEIGHT===IPADPRO11_HEIGHT&&D_WIDTH===IPADPRO11_WIDTH||D_HEIGHT===IPADPRO11_WIDTH&&D_WIDTH===IPADPRO11_HEIGHT||D_HEIGHT===IPADPRO129_HEIGHT&&D_WIDTH===IPADPRO129_WIDTH||D_HEIGHT===IPADPRO129_WIDTH&&D_WIDTH===IPADPRO129_HEIGHT;}();var isIPad=function(){if(_reactNative.Platform.OS!=="ios"||isIPhoneX)return false;if(D_HEIGHT>D_WIDTH&&D_WIDTH<PAD_WIDTH){return false;}if(D_WIDTH>D_HEIGHT&&D_HEIGHT<PAD_WIDTH){return false;}return true;}();var _customStatusBarHeight=null;var _customStatusBarHidden=null;var statusBarHeight=function statusBarHeight(isLandscape){if(_customStatusBarHeight!==null){return _customStatusBarHeight;}if(_reactNative.Platform.OS==="android"){if(global.Expo){return global.Expo.Constants.statusBarHeight;}else{return 0;}}if(isIPhoneX){return isLandscape?0:44;}if(isNewIPadPro){return 24;}if(isIPad){return _customStatusBarHidden?0:20;}return isLandscape||_customStatusBarHidden?0:20;};var doubleFromPercentString=function doubleFromPercentString(percent){if(!percent.includes("%")){return 0;}var dbl=parseFloat(percent)/100;if(isNaN(dbl))return 0;return dbl;};var SafeView=function(_Component){(0,_inherits2.default)(SafeView,_Component);var _super=_createSuper(SafeView);function SafeView(){var _this;(0,_classCallCheck2.default)(this,SafeView);for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}_this=_super.call.apply(_super,[this].concat(args));_this.state={touchesTop:true,touchesBottom:true,touchesLeft:true,touchesRight:true,orientation:null,viewWidth:0,viewHeight:0};_this._handleLayout=function(e){if(_this.props.onLayout)_this.props.onLayout(e);_this._updateMeasurements();};_this._updateMeasurements=function(){if(!_this._isMounted)return;if(!_this.view)return;var isLandscape=_this.props.isLandscape;var orientation=_this.state.orientation;var newOrientation=isLandscape?"landscape":"portrait";if(orientation&&orientation===newOrientation){return;}var _getResolvedDimension2=getResolvedDimensions(),WIDTH=_getResolvedDimension2.width,HEIGHT=_getResolvedDimension2.height;_this.view.getNode().measureInWindow(function(winX,winY,winWidth,winHeight){if(!_this.view){return;}var realY=winY;var realX=winX;if(realY>=HEIGHT){realY=realY%HEIGHT;}else if(realY<0){realY=realY%HEIGHT+HEIGHT;}if(realX>=WIDTH){realX=realX%WIDTH;}else if(realX<0){realX=realX%WIDTH+WIDTH;}var touchesTop=realY===0;var touchesBottom=realY+winHeight>=HEIGHT;var touchesLeft=realX===0;var touchesRight=realX+winWidth>=WIDTH;_this.setState({touchesTop:touchesTop,touchesBottom:touchesBottom,touchesLeft:touchesLeft,touchesRight:touchesRight,orientation:newOrientation,viewWidth:winWidth,viewHeight:winHeight});});};_this._getSafeAreaStyle=function(){var _this$state=_this.state,touchesTop=_this$state.touchesTop,touchesBottom=_this$state.touchesBottom,touchesLeft=_this$state.touchesLeft,touchesRight=_this$state.touchesRight;var _this$props=_this.props,forceInset=_this$props.forceInset,isLandscape=_this$props.isLandscape;var _this$_getViewStyles=_this._getViewStyles(),paddingTop=_this$_getViewStyles.paddingTop,paddingBottom=_this$_getViewStyles.paddingBottom,paddingLeft=_this$_getViewStyles.paddingLeft,paddingRight=_this$_getViewStyles.paddingRight,viewStyle=_this$_getViewStyles.viewStyle;var style=_objectSpread(_objectSpread({},viewStyle),{},{paddingTop:touchesTop?_this._getInset("top"):0,paddingBottom:touchesBottom?_this._getInset("bottom"):0,paddingLeft:touchesLeft?_this._getInset("left"):0,paddingRight:touchesRight?_this._getInset("right"):0});if(forceInset){Object.keys(forceInset).forEach(function(key){var inset=forceInset[key];if(inset==="always"){inset=_this._getInset(key);}if(inset==="never"){inset=0;}switch(key){case"horizontal":{style.paddingLeft=inset;style.paddingRight=inset;break;}case"vertical":{style.paddingTop=inset;style.paddingBottom=inset;break;}case"left":case"right":case"top":case"bottom":{var padding="padding"+key[0].toUpperCase()+key.slice(1);style[padding]=inset;break;}}});}if(style.height&&typeof style.height==="number"){style.height+=style.paddingTop+style.paddingBottom;}if(style.width&&typeof style.width==="number"){style.width+=style.paddingLeft+style.paddingRight;}style.paddingTop=Math.max(style.paddingTop,paddingTop);style.paddingBottom=Math.max(style.paddingBottom,paddingBottom);style.paddingLeft=Math.max(style.paddingLeft,paddingLeft);style.paddingRight=Math.max(style.paddingRight,paddingRight);return style;};_this._getViewStyles=function(){var viewWidth=_this.state.viewWidth;var _StyleSheet$flatten=_reactNative.StyleSheet.flatten(_this.props.style||{}),_StyleSheet$flatten$p=_StyleSheet$flatten.padding,padding=_StyleSheet$flatten$p===void 0?0:_StyleSheet$flatten$p,_StyleSheet$flatten$p2=_StyleSheet$flatten.paddingVertical,paddingVertical=_StyleSheet$flatten$p2===void 0?padding:_StyleSheet$flatten$p2,_StyleSheet$flatten$p3=_StyleSheet$flatten.paddingHorizontal,paddingHorizontal=_StyleSheet$flatten$p3===void 0?padding:_StyleSheet$flatten$p3,_StyleSheet$flatten$p4=_StyleSheet$flatten.paddingTop,paddingTop=_StyleSheet$flatten$p4===void 0?paddingVertical:_StyleSheet$flatten$p4,_StyleSheet$flatten$p5=_StyleSheet$flatten.paddingBottom,paddingBottom=_StyleSheet$flatten$p5===void 0?paddingVertical:_StyleSheet$flatten$p5,_StyleSheet$flatten$p6=_StyleSheet$flatten.paddingLeft,paddingLeft=_StyleSheet$flatten$p6===void 0?paddingHorizontal:_StyleSheet$flatten$p6,_StyleSheet$flatten$p7=_StyleSheet$flatten.paddingRight,paddingRight=_StyleSheet$flatten$p7===void 0?paddingHorizontal:_StyleSheet$flatten$p7,viewStyle=(0,_objectWithoutProperties2.default)(_StyleSheet$flatten,["padding","paddingVertical","paddingHorizontal","paddingTop","paddingBottom","paddingLeft","paddingRight"]);if(typeof paddingTop!=="number"){paddingTop=doubleFromPercentString(paddingTop)*viewWidth;}if(typeof paddingBottom!=="number"){paddingBottom=doubleFromPercentString(paddingBottom)*viewWidth;}if(typeof paddingLeft!=="number"){paddingLeft=doubleFromPercentString(paddingLeft)*viewWidth;}if(typeof paddingRight!=="number"){paddingRight=doubleFromPercentString(paddingRight)*viewWidth;}return{paddingTop:paddingTop,paddingBottom:paddingBottom,paddingLeft:paddingLeft,paddingRight:paddingRight,viewStyle:viewStyle};};_this._getInset=function(key){var isLandscape=_this.props.isLandscape;return getInset(key,isLandscape);};return _this;}(0,_createClass2.default)(SafeView,[{key:"componentDidMount",value:function componentDidMount(){var _this2=this;this._isMounted=true;_reactNative.InteractionManager.runAfterInteractions(function(){_this2._updateMeasurements();});}},{key:"componentWillUnmount",value:function componentWillUnmount(){this._isMounted=false;}},{key:"componentDidUpdate",value:function componentDidUpdate(){this._updateMeasurements();}},{key:"render",value:function render(){var _this3=this;var _this$props2=this.props,_this$props2$forceIns=_this$props2.forceInset,forceInset=_this$props2$forceIns===void 0?false:_this$props2$forceIns,isLandscape=_this$props2.isLandscape,style=_this$props2.style,props=(0,_objectWithoutProperties2.default)(_this$props2,["forceInset","isLandscape","style"]);var safeAreaStyle=this._getSafeAreaStyle();return _react.default.createElement(_reactNative.Animated.View,(0,_extends2.default)({ref:function ref(c){return _this3.view=c;},pointerEvents:"box-none"},props,{onLayout:this._handleLayout,style:safeAreaStyle,__source:{fileName:_jsxFileName,lineNumber:164,columnNumber:7}}));}}]);return SafeView;}(_react.Component);SafeView.setStatusBarHeight=function(height){_customStatusBarHeight=height;};SafeView.setStatusBarHidden=function(hidden){_customStatusBarHidden=hidden;};function getInset(key,isLandscape){switch(key){case"horizontal":case"right":case"left":{return isLandscape?isIPhoneX?44:0:0;}case"vertical":case"top":{return statusBarHeight(isLandscape);}case"bottom":{if(isIPhoneX){return isLandscape?24:34;}if(isNewIPadPro){return 20;}return 0;}}}function getStatusBarHeight(isLandscape){return statusBarHeight(isLandscape);}var SafeAreaView=(0,_withOrientation.default)(SafeView);var _default=SafeAreaView;exports.default=_default;var withSafeArea=function withSafeArea(){var forceInset=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return function(WrappedComponent){var withSafeArea=function(_Component2){(0,_inherits2.default)(withSafeArea,_Component2);var _super2=_createSuper(withSafeArea);function withSafeArea(){(0,_classCallCheck2.default)(this,withSafeArea);return _super2.apply(this,arguments);}(0,_createClass2.default)(withSafeArea,[{key:"render",value:function render(){return _react.default.createElement(SafeAreaView,{style:{flex:1},forceInset:forceInset,__source:{fileName:_jsxFileName,lineNumber:386,columnNumber:11}},_react.default.createElement(WrappedComponent,(0,_extends2.default)({},this.props,{__source:{fileName:_jsxFileName,lineNumber:387,columnNumber:13}})));}}]);return withSafeArea;}(_react.Component);return(0,_hoistNonReactStatics.default)(withSafeArea,WrappedComponent);};};exports.withSafeArea=withSafeArea;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=_default;exports.isOrientationLandscape=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _hoistNonReactStatics=_interopRequireDefault(require("hoist-non-react-statics"));var _jsxFileName="/home/circleci/project/packages/image/src/safeAreaView/withOrientation.js";function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function _getRequireWildcardCache(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=="object"&&typeof obj!=="function"){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=(0,_getPrototypeOf2.default)(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2.default)(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return(0,_possibleConstructorReturn2.default)(this,result);};}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}var isOrientationLandscape=function isOrientationLandscape(_ref){var width=_ref.width,height=_ref.height;return width>height;};exports.isOrientationLandscape=isOrientationLandscape;function _default(WrappedComponent){var withOrientation=function(_Component){(0,_inherits2.default)(withOrientation,_Component);var _super=_createSuper(withOrientation);function withOrientation(){var _this;(0,_classCallCheck2.default)(this,withOrientation);_this=_super.call(this);_this.handleOrientationChange=function(_ref2){var window=_ref2.window;var isLandscape=isOrientationLandscape(window);_this.setState({isLandscape:isLandscape});};var _isLandscape=isOrientationLandscape(_reactNative.Dimensions.get("window"));_this.state={isLandscape:_isLandscape};return _this;}(0,_createClass2.default)(withOrientation,[{key:"componentDidMount",value:function componentDidMount(){if(typeof _reactNative.Dimensions.addEventListener==="function"){_reactNative.Dimensions.addEventListener("change",this.handleOrientationChange);}}},{key:"componentWillUnmount",value:function componentWillUnmount(){if(typeof _reactNative.Dimensions.removeEventListener==="function"){_reactNative.Dimensions.removeEventListener("change",this.handleOrientationChange);}}},{key:"render",value:function render(){return _react.default.createElement(WrappedComponent,(0,_extends2.default)({},this.props,this.state,{__source:{fileName:_jsxFileName,lineNumber:35,columnNumber:14}}));}}]);return withOrientation;}(_react.Component);return(0,_hoistNonReactStatics.default)(withOrientation,WrappedComponent);}
|