import { 
  requireNativeComponent, 
} from 'react-native';

import React, { 

} from 'react';

import { 
  BlazeBaseRowWidgetViewProps,
  BlazeBaseMomentsWidgetViewProps,
  BlazeBaseWidgetViewProps, 
  BlazeSdkBaseWidgetViewProps
} from './BlazeBaseWidgetViewProps';

import { 
  BlazeBaseWidgetView, 
} from './BlazeBaseWidgetComponent';

export interface BlazeMomentsRowViewProps 
  extends BlazeBaseWidgetViewProps,
          BlazeBaseRowWidgetViewProps,
          BlazeBaseMomentsWidgetViewProps {

}

interface BlazeSdkMomentsRowViewNativeProps 
  extends BlazeMomentsRowViewProps, 
          BlazeSdkBaseWidgetViewProps {

}

export const BLAZE_MOMENTS_ROW_COMPONENT = 'RTNBlazeMomentsRowView';

export class BlazeMomentsRowView extends BlazeBaseWidgetView<BlazeMomentsRowViewProps> {

  protected getComponentName(): string {
    return BLAZE_MOMENTS_ROW_COMPONENT
  }

  render() {
    return (
      <MomentsRowViewManager
      {...this.props}
      {...this.createBaseProps()}
      ref={(ref) => {
        if (ref) this.ref = ref;
      }}
    />
    );
  }
}

const MomentsRowViewManager = requireNativeComponent<BlazeSdkMomentsRowViewNativeProps>(
  BLAZE_MOMENTS_ROW_COMPONENT,
);
