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 repositorygonativeio/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.
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
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: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.