mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 19:05:13 +08:00
bugfixes
This commit is contained in:
28
index.js
28
index.js
@@ -3,30 +3,4 @@
|
||||
* @providesModule react-native-update
|
||||
*/
|
||||
|
||||
//if (__DEV__){
|
||||
// if (global.__fbBatchedBridge) {
|
||||
// require('fbjs/lib/warning')('Should require pushy before react-native to do hook stuff!');
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//require('./lib/hooks');
|
||||
const HotUpdate = require('react-native').NativeModules.HotUpdate;
|
||||
const NativeAppEventEmitter = require('react-native').NativeAppEventEmitter;
|
||||
const downloadRootDir = HotUpdate.downloadRootDir;
|
||||
|
||||
export function downloadFile(options) {
|
||||
HotUpdate.downloadUpdate(options, r=>{
|
||||
//console.log(r);
|
||||
})
|
||||
}
|
||||
|
||||
export function reloadUpdate(options) {
|
||||
HotUpdate.reloadUpdate(options);
|
||||
}
|
||||
|
||||
export function setNeedUpdate(options) {
|
||||
HotUpdate.setNeedUpdate(options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
require('./lib/index');
|
||||
|
Reference in New Issue
Block a user