UNPKG

@wscsports/blaze-rtn-sdk

Version:
27 lines 1.23 kB
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import { requireNativeComponent } from 'react-native'; import React from 'react'; import { BlazeBaseWidgetView } from './BlazeBaseWidgetComponent'; export const BLAZE_STORIES_GRID_COMPONENT = 'RTNBlazeStoriesGridView'; export class BlazeStoriesGridView extends BlazeBaseWidgetView { getComponentName() { return BLAZE_STORIES_GRID_COMPONENT; } render() { const { style } = this.props; const finalStyle = this.props.isEmbeddedInScrollView ? { ...style, height: this.state.height } : style ?? {}; return /*#__PURE__*/React.createElement(StoriesGridViewManager, _extends({}, this.props, this.createBaseProps(), { style: finalStyle, ref: ref => { if (ref) this.ref = ref; } })); } } const StoriesGridViewManager = requireNativeComponent(BLAZE_STORIES_GRID_COMPONENT); //# sourceMappingURL=BlazeStoriesGridView.js.map