UNPKG

@shopify/app-bridge-host

Version:

App Bridge Host contains middleware and components that are meant to be consumed by the app's host. The middleware and `Frame` component are responsible for facilitating messages posted between the client and host, and used to act on actions sent from the

18 lines (17 loc) 771 B
import React from 'react'; import { appBridgeMiddlewareProptype, Middleware } from './'; export interface Context { appBridgeMiddleware: Middleware; } export interface Props { middleware: Middleware; } export declare class Provider extends React.Component<Props, never> { static childContextTypes: { appBridgeMiddleware: typeof appBridgeMiddlewareProptype; }; middleware: Middleware; constructor(props: Props); getChildContext(): Context; render(): string | number | boolean | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | React.ReactPortal | null | undefined; }