1.0.2 • Published 2 years ago

mb-native-action v1.0.2

Weekly downloads
-
License
AKT
Repository
-
Last release
2 years ago

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

TypeDescription
GO_BACKGo back
GET_CONTACTGet contact
OPEN_BROWSEROpen browser
PAYMENT_HUB_TRANSACTIONPayment hub transaction
TELCall
EMAILSend email
GET_LOCATIONGet location
CLOSE_WEBVIEWClose webview
1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago