Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.4 kB
1
Indexable
// Customizable Area Start
// @ts-nocheck
// @ts-ignore
import { IBlock } from '../../framework/src/IBlock';
import { Message } from '../../framework/src/Message';
import { BlockComponent } from '../../framework/src/BlockComponent';
import MessageEnum, { getName } from '../../framework/src/Messages/MessageEnum';
import { runEngine } from '../../framework/src/RunEngine';
import { CommonContext } from './CommonContextProvider';

export interface Props {
  navigation: any;
  id: string;
  route: any;
}

interface S {
  showCreatepost: any;
}

interface SS {
  id: any;
}

export default class CustomBottomBarClassController extends BlockComponent<
  Props,
  S,
  SS
> {
  // Customizable Area End
  static contextType = CommonContext;

  constructor(props: Props) {
    super(props);
    this.receive = this.receive.bind(this);

    // Customizable Area Start
    this.subScribedMessages = [
      getName(MessageEnum.CountryCodeMessage),
      getName(MessageEnum.RestAPIResponceMessage),
      getName(MessageEnum.ReciveUserCredentials),
    ];

    this.state = {
      showCreatepost: this.props.showCreatepost,
      showTrending: false,
      showStory: false,
    };

    runEngine.attachBuildingBlock(this as IBlock, this.subScribedMessages);
  }

  async componentDidMount() {}

  async receive(from: string, message: Message) {}
}
// Customizable Area End