Skip to main content

Median JavaScript Bridge NPM package

Simplify the integration of your Single-Page Applications (SPAs) with the Median JavaScript Bridge NPM package. Designed to work across popular JavaScript frameworks such as React, Angular, Vue.js, and more, this framework-agnostic library simplifies the use of Median JavaScript Bridge methods in your web apps. Follow the steps below to install the package and start using within your web app. Explore our GitHub repository
gonativeio/median-javascript-bridge
Loading repository data...
Explore the package on NPM https://www.npmjs.com/package/median-js-bridge

Implementation guide

App configuration

When utilizing the Median JavaScript Bridge NPM package in your web application, remember to enable the corresponding option in App Studio (Web Overrides > JavaScript Frameworks and NPM). This step prevents conflicts with the native app’s embedded JavaScript Bridge library and activates required listener support. Omitting the package while enabling the option may result in unresponsive JavaScript Bridge functions and callbacks.
JavaScript Frameworks and NPM option under Website Overrides in App Studio

Median App Studio - JavaScript Frameworks and NPM

Web app installation instructions

Using a package manager

Install the package with npm or yarn. With npm:
bash
With yarn
bash

Using a script tag

If you prefer to add the library directly to your web page, include the following script tag in your HTML:
Avoid @latest in productionWhen loading the library via a <script> tag, using @latest means you will receive every new release as soon as it is available. This can lead to unintended regressions in production as potential breaking changes are applied instantly.Recommendation: Pin to a specific version (e.g. @1.12.3) and upgrade deliberately.

Next steps

After a successful installation of the package you can explore dedicated use cases and examples to implement callbacks, set up event listeners and implement optimized navigation for your SPA.

Example commands

See implementation examples for common features across the app lifecycle, with integration steps for each.

Using listeners

Register and manage listeners for app events such as deep links and push notifications.

SPA navigation

Handle navigation in a single-page application (SPA) with the Median NPM package.
Last modified on November 7, 2026