@shopify/react-app-bridge-universal-provider
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

@shopify/react-app-bridge-universal-provider

Build Status Build Status License: MIT npm version npm bundle size (minified + gzip)

A self-serializing/deserializing app-bridge-react provider that works for isomorphic applications.

Installation

yarn add @shopify/react-app-bridge-universal-provider

Usage

Props

The component takes children, apiKey, shopOrigin, and forceRedirect. Similar to @shopify/app-bridge-react's Provider.

Example

// App.tsx

import {AppBridgeUniversalProvider} from '@shopify/react-app-bridge-universal-provider';

function App({apiKey, shopOrigin}: {apiKey?: string; shopOrigin?: string}) {
  return (
    <AppBridgeUniversalProvider apiKey={apiKey} shopOrigin={shopOrigin}>
      {/* rest of the app */}
    </AppBridgeUniversalProvider>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @shopify/react-app-bridge-universal-provider

Weekly Downloads

39

Version

3.1.0

License

MIT

Unpacked Size

8.04 kB

Total Files

15

Last publish

Collaborators

  • jaimie.rockburn
  • blittle
  • shopify-admin
  • maryharte
  • crisfmb
  • pmoloney89
  • netlohan
  • st999999
  • justin-irl
  • megswim
  • wcandillon
  • nathanpjf
  • shopify-dep
  • goodforonefare
  • lemonmade
  • vsumner
  • wizardlyhel
  • antoine.grant
  • tsov
  • andyw8-shopify
  • henrytao
  • hannachen
  • vividviolet
  • bpscott