Uh oh!
There was an error while loading. Please reload this page.
[Android] AppState - #5152
Conversation
facebook-github-bot
commented
Jan 6, 2016
By analyzing the blame information on this pull request, we identified @vjeux, @zjj010104 and @mkonicek to be potential reviewers. |
mkonicek
commented
Jan 6, 2016
We have this module internally and want to open source it, let me compare the implementations. |
mkonicek
commented
Jan 6, 2016
Thanks for working on this! |
skv-headless
commented
Jan 6, 2016
No problem, thanks for quick response. If I can help you somehow to deliver it faster just let me know. |
mkonicek
commented
Jan 12, 2016
I think we should still keep Here's the internal module: If you can make |
mkonicek
commented
Jan 12, 2016
Sorry for the delay on this! |
skv-headless
commented
Jan 13, 2016
I'll update pr in few days. Could you please don't release AppStateAndroid? I want to make it same for both platforms as you said. |
7820338 to
bf49bdeComparefacebook-github-bot
commented
Jan 15, 2016
@skv-headless updated the pull request. |
There was a problem hiding this comment.
property AppState Property not found in Object.create
There was a problem hiding this comment.
You can ignore this lint warning.
bf49bde to
5d3a887Comparefacebook-github-bot
commented
Jan 15, 2016
@skv-headless updated the pull request. |
skv-headless
commented
Jan 15, 2016
@mkonicek could you please review? |
There was a problem hiding this comment.
property AppState Property not found in Object.create
satya164
commented
Jan 15, 2016
Since we're introducing a new API, we should use promises instead of callbacks. Refer #4971 |
There was a problem hiding this comment.
Maybe also have a method sendAppStateEvent?
privatevoidsendAppStateEvent(WritableMapappState) {
getReactApplicationContext().getJSModule(RCTDeviceEventEmitter.class)
.emit("appStateDidChange", appState);
}mkonicek
commented
Jan 18, 2016
Thanks again for working on it! I'm a bit swamped but will try to review tomorrow. |
5d3a887 to
1d894aeComparefacebook-github-bot
commented
Jan 19, 2016
@skv-headless updated the pull request. |
There was a problem hiding this comment.
property AppState Property not found in Object.create
mkonicek
commented
Jan 19, 2016
Is |
There was a problem hiding this comment.
Default state should be "uninitialized" as per the internal module: https://gist.github.com/mkonicek/039f35748c0a073dd1b5
What's the rationale for setting it to "active"?
There was a problem hiding this comment.
nit: Please use constants like in https://gist.github.com/mkonicek/039f35748c0a073dd1b5
mkonicek
commented
Jan 19, 2016
Getting close! Very excited! |
skv-headless
commented
Jan 19, 2016
AppState.js is a copy of AppStateIOS.ios.js |
mkonicek
commented
Jan 19, 2016
Thanks! I guessed that was the case. |
skv-headless
commented
Jan 19, 2016
@mkonicek agree with all notes, thank you for review. I'll try to fix tomorrow. |
satya164
commented
Jan 19, 2016
If that's the case, can you also get rid of |
skv-headless
commented
Jan 20, 2016
satya164
commented
Jan 20, 2016
If the APIs are exactly the same, maybe we can just require the |
mkonicek
commented
Jan 20, 2016
I like the idea of making |
mkonicek
commented
Jan 20, 2016
@skv-headless Cool! Once you address the comments I think we can merge this. |
1d894ae to
617a1b3Comparefacebook-github-bot
commented
Jan 20, 2016
@skv-headless updated the pull request. |
skv-headless
commented
Jan 20, 2016
@mkonicek updated.
|
There was a problem hiding this comment.
property AppState Property not found in Object.create
mkonicek
commented
Jan 21, 2016
Awesome! @facebook-github-bot shipit |
facebook-github-bot
commented
Jan 21, 2016
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/581762778640408/int_phab to review. |
Summary: Closes#5152 Reviewed By: svcscm Differential Revision: D2850250 Pulled By: mkonicek fb-gh-sync-id: 0b5063fa7121d4e304a70da8573c9ba1d05a757c
jacygogogo
commented
Jan 16, 2020
guy can you tell me what is the difference between AppStateIOS and AppState. |
No description provided.