st-fe-utils
v0.1.4
Published
fe utils
Downloads
1
Readme
fe utils
callAppFn
Methods for communicating with native app by webview.
import { callAppFn } from 'st-fe-utils/app'
callAppFn('jsGoAppBack')
callAppFn('jsGoAppContractStatus', [1, 0])
callAppFn('whatever', {
id: 1
})
isAndroid
import { isAndroid } from 'st-fe-utils/app'
console.log('isAndroid', isAndroid)
isIos
import { isIos } from 'st-fe-utils/app'
console.log('isIos', isIos)