@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
22 lines (21 loc) • 1.07 kB
TypeScript
import React from 'react';
import { ComponentProps } from '../types';
import { WithFeature } from '../store/reducers/embeddedApp/navigation';
interface ExtraProps {
[key: string]: any;
}
declare type ComposedProps = WithFeature & ExtraProps;
/**
* Renders a Frame component with the Context set to `Main`
* Handles updating the iframe url for all app-related Navigation actions
* @public
* @requires RouterContext
* @requires HostContext
* */
export declare function MainFrame(props: ComposedProps): JSX.Element | null;
declare const _default: (React.ComponentClass<ComponentProps & ExtraProps, any> & Pick<(React.ComponentClass<ComposedProps, any> & typeof MainFrame) | (React.FunctionComponent<ComposedProps> & typeof MainFrame), "defaultProps">) | (React.FunctionComponent<ComponentProps & ExtraProps> & Pick<(React.ComponentClass<ComposedProps, any> & typeof MainFrame) | (React.FunctionComponent<ComposedProps> & typeof MainFrame), "defaultProps">);
/**
* The MainFrame component with the Navigation feature
* @public
* */
export default _default;