mb-native-action

1.0.2 • Public • Published

mb-native-action

Component for communicate with MB app

Installation

npm install --save mb-native-action

Usage

import { sendMessage, getMessage } from "mb-native-action";

() => (
  sendMessage(type, data);
  getMessage((data)=> {
    window.alert(`data from app: ${JSON.stringify(data)}`)
  })
);

Properties

Type Description
GO_BACK Go back
GET_CONTACT Get contact
OPEN_BROWSER Open browser
PAYMENT_HUB_TRANSACTION Payment hub transaction
TEL Call
EMAIL Send email
GET_LOCATION Get location
CLOSE_WEBVIEW Close webview

Readme

Keywords

Package Sidebar

Install

npm i mb-native-action

Weekly Downloads

17

Version

1.0.2

License

AKT

Unpacked Size

1.7 kB

Total Files

3

Last publish

Collaborators

  • akata13