mb-native-action
v1.0.2
Published
Component for communicate with MB app
Downloads
41
Readme
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 |