Skip to content

Commit 668fcb6

Browse files
author
wangcuijuan
committed
兜底global.__mpxAppCbs.show options有undefined的情况
1 parent b67c59d commit 668fcb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/platform/createApp.ios.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default function createApp (options) {
138138
useEffect(() => {
139139
const changeSubscription = ReactNative.AppState.addEventListener('change', (currentState) => {
140140
if (currentState === 'active') {
141-
let options = global.__mpxEnterOptions
141+
let options = global.__mpxEnterOptions || {}
142142
const navigation = getFocusedNavigation()
143143
if (navigation) {
144144
const state = navigation.getState()

0 commit comments

Comments
 (0)