UNPKG

react-native-tab-view

Version:
2 lines 1.42 kB
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";import _classCallCheck from"@babel/runtime/helpers/classCallCheck";import _createClass from"@babel/runtime/helpers/createClass";import _possibleConstructorReturn from"@babel/runtime/helpers/possibleConstructorReturn";import _getPrototypeOf from"@babel/runtime/helpers/getPrototypeOf";import _inherits from"@babel/runtime/helpers/inherits";var _jsxFileName="/Users/satya/Workspace/Projects/react-native-tab-view/src/SceneMap.tsx";import*as React from'react';var SceneComponent=function(_React$PureComponent){_inherits(SceneComponent,_React$PureComponent);function SceneComponent(){_classCallCheck(this,SceneComponent);return _possibleConstructorReturn(this,_getPrototypeOf(SceneComponent).apply(this,arguments));}_createClass(SceneComponent,[{key:"render",value:function render(){var _this$props=this.props,component=_this$props.component,rest=_objectWithoutProperties(_this$props,["component"]);return React.createElement(component,rest);}}]);return SceneComponent;}(React.PureComponent);export default function SceneMap(scenes){return function(_ref){var route=_ref.route,jumpTo=_ref.jumpTo,position=_ref.position;return React.createElement(SceneComponent,{key:route.key,component:scenes[route.key],route:route,jumpTo:jumpTo,position:position,__source:{fileName:_jsxFileName,lineNumber:16}});};} //# sourceMappingURL=SceneMap.js.map