autobots-lib
Version:
汽车人基础库
1 lines • 731 B
JavaScript
;
import React from 'react-native';
import Native from '../native';
import Toast from './toast';
const {
ToastAndroid,
Platform,
} = React;
let openNative = function(callback)
{
let url = 'autobots://rn/update';
// if(isShowLoading){
// url = url +"?isShowLoading=true";
// }else {
// url = url +"?isShowLoading=false";
// }
// if(shadeHeight>0)
// {
// url = url +"&shadeHeight="+shadeHeight;
// }
Native.callNative(url,function(result,data){
if(callback)
{
callback(result,data);
}
});
}
var uploading = {
Open:function(callback)
{
openNative(callback);
},
}
module.exports = uploading;