mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-14 09:59:12 +08:00
Merge pull request #130 from Microsoft/revert-to-module-exports
Revert to module.exports
This commit is contained in:
@@ -295,4 +295,4 @@ const CodePush = {
|
||||
}
|
||||
};
|
||||
|
||||
export default CodePush;
|
||||
module.exports = CodePush;
|
||||
@@ -5,7 +5,7 @@ import { DeviceEventEmitter } from "react-native";
|
||||
// This function is used to augment remote and local
|
||||
// package objects with additional functionality/properties
|
||||
// beyond what is included in the metadata sent by the server.
|
||||
export default (NativeCodePush) => {
|
||||
module.exports = (NativeCodePush) => {
|
||||
const remote = {
|
||||
async download(downloadProgressCallback) {
|
||||
if (!this.downloadUrl) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
export default {
|
||||
module.exports = {
|
||||
async request(verb, url, body, callback) {
|
||||
if (typeof body === "function") {
|
||||
callback = body;
|
||||
|
||||
Reference in New Issue
Block a user