UNPKG

@shopify/app-bridge

Version:

[![Build Status](https://travis-ci.com/Shopify/app-bridge.svg?token=RBRyvqQyN525bnfz7J8p&branch=master)](https://travis-ci.com/Shopify/app-bridge) [![codecov](https://codecov.io/gh/Shopify/app-bridge/branch/master/graph/badge.svg?token=nZ21m39Dr6)](https:

22 lines (21 loc) 572 B
/// <reference types="react" /> /** * @module host */ 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(): React.ReactElement<any>; }