@wscsports/blaze-rtn-sdk
Version:
WSC Sports Blaze SDK component for React Native
27 lines • 1.22 kB
JavaScript
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_VIDEOS_GRID_COMPONENT = 'RTNBlazeVideosGridView';
export class BlazeVideosGridView extends BlazeBaseWidgetView {
getComponentName() {
return BLAZE_VIDEOS_GRID_COMPONENT;
}
render() {
const {
style
} = this.props;
const finalStyle = this.props.isEmbeddedInScrollView ? {
...style,
height: this.state.height
} : style ?? {};
return /*#__PURE__*/React.createElement(VideosGridViewManager, _extends({}, this.props, this.createBaseProps(), {
style: finalStyle,
ref: ref => {
if (ref) this.ref = ref;
}
}));
}
}
const VideosGridViewManager = requireNativeComponent(BLAZE_VIDEOS_GRID_COMPONENT);
//# sourceMappingURL=BlazeVideosGridView.js.map