From 9fc8f05d34ceb72a7bd0737a04895354d95fa195 Mon Sep 17 00:00:00 2001 From: Bai Jie Date: Fri, 17 Jul 2020 12:27:59 +0800 Subject: [PATCH] fix(utils): avoid error because of undefined _global _global is undefined on React Native --- src/utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 695ab4e..f011160 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -1,4 +1,4 @@ -let _global: any = this; +let _global: any = this || {}; function getTimeFactory(_window: any, _process: any, _date: any) { return () => {