UNPKG

autobots-lib

Version:

汽车人基础库

1 lines 781 B
'use strict'; import React from 'react-native'; import Native from '../native'; import Toast from './toast'; const { ToastAndroid, Platform, } = React; /** * * @param callback 回调 */ let openNative = function(callback){ let u = 'autobots://rn/jumpToFeedback'; // if(isShowLoading){ // url = url +"?isShowLoading=true"; // }else { // url = url +"?isShowLoading=false"; // } // if(shadeHeight>0) // { // url = url +"&shadeHeight="+shadeHeight; // } Native.callNative(u,function(result,data){ if(callback) { callback(result,data); } }); } var jumptofeedback = { Open:function(callback) { openNative(callback); }, } module.exports = jumptofeedback;