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

25 lines (24 loc) 712 B
import React, { CSSProperties } from 'react'; import { Store } from './store/async'; import { ComponentProps } from './types'; /** * The interface for the Host's props * @public * */ export interface Props { style?: CSSProperties; /** An array of React components */ components: React.ComponentType<ComponentProps>[]; } /** * A component that renders an array of components * and provides the global App Bridge store as a prop * @public * */ export declare function Host(props: Props & { store: Store; }): JSX.Element; declare const _default: import("react-redux").ConnectedComponentClass<typeof Host, Pick<Props & { store: Store; }, "style" | "components">>; export default _default;