UNPKG

@shopify/app-bridge-host

Version:

App Bridge Host contains components and middleware to be consumed by the app's host, as well as the host itself. The middleware and `Frame` component are responsible for facilitating communication between the client and host, and used to act on actions se

20 lines (19 loc) 580 B
import React from 'react'; import { appBridgeMiddlewareProptype } from './PropTypes'; import type { Middleware } from './types'; export interface Context { appBridgeMiddleware: Middleware; } export interface Props { children?: React.ReactNode; middleware: Middleware; } export declare class Provider extends React.Component<Props, never> { static childContextTypes: { appBridgeMiddleware: typeof appBridgeMiddlewareProptype; }; middleware: Middleware; constructor(props: Props); getChildContext(): Context; render(): React.ReactNode; }