autobots-lib
Version:
汽车人基础库
33 lines (25 loc) • 627 B
JavaScript
;
import React from 'react-native';
import Native from './native';
const {
ToastAndroid,
Platform,
} = React;
let openNative = function(url,callback){
Native.callNative(url,function(result,data){
if(callback){
callback(result,data);
}
});
}
var others = {
openFaceCamera:function(callback){
let url = 'autobots://testrn/FaceCameraPicker';
openNative(url,callback);
},
openFaceAttendance:function(callback){
let url = 'autobots://testrn/openFaceAttendance';
openNative(url,callback);
}
}
module.exports = others;