-
Notifications
You must be signed in to change notification settings - Fork 24k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove android initialAppState fallback check #23487
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@zhongwuzw merged commit f95876b into |
Summary: 1. We expose the `initialAppState` for Android in facebook#19935, so we can remove the fallback check for Android. 2. Rename `RCTCurrentAppBackgroundState` to `RCTCurrentAppState`, it's a private file function, so it's safe to rename, `RCTCurrentAppState` is more suitable because we actually get app state, not app background state. [Android] [Enhancement] - Remove android `initialAppState` fallback check. Pull Request resolved: facebook#23487 Differential Revision: D14121293 Pulled By: cpojer fbshipit-source-id: fec196cef2969fe6f6f1571f4ebcafcec26266a1
Summary
initialAppState
for Android in Expose initialAppState constant from Android native AppState module #19935, so we can remove the fallback check for Android.RCTCurrentAppBackgroundState
toRCTCurrentAppState
, it's a private file function, so it's safe to rename,RCTCurrentAppState
is more suitable because we actually get app state, not app background state.Changelog
[Android] [Enhancement] - Remove android
initialAppState
fallback check.Test Plan
Android support
initialAppState
.