Skip to content

AppState.currentState is always returning undefined in RNW 0.63.6 #6482

@shanelile

Description

@shanelile

My team is trying to upgrade to RNW 0.63, and I've noticed what looks like a regression in a component that relies on AppState from react-native, where AppState.currentState is always returning undefined.

Digging into the code, it looks like a possible regression from updating \node_modules\react-native-windows\Microsoft.ReactNative\Modules\AppStateModule.cpp - GetCurrentAppState returns a plain string, either "active" or "background". However, node_modules\react-native-windows\Libraries\AppState\AppState.js attempts to compare its currentState value to appStateData.app_state, which is not a valid field to reference.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions