-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
[RCTStatusBarManager] How do I get the initial status bar frame? #2515
Comments
@jedlinlau - good question! It doesn't look like this is possible right now. Could you try modifying https://github.com/facebook/react-native/blob/b998e5a7b74905b30b1137a02e14cd5e6f97fccc/React/Modules/RCTStatusBarManager.m to add an exported function that grabs the current state? cc @a2 |
@jedlinlau - I've implemented this before here: https://github.com/brentvatne/react-native-status-bar-size/blob/master/RNStatusBarSize/RNStatusBarSize.m - so you should be able to base your implementation off of that. This would be a great way to get a first contribution in 😄 |
@brentvatne could you assign me so I don't forget about this one? |
This group is long gone unfortunately :( Everyone there had push access to the repo :x |
@grabbou I hereby dub this issue assigned to you |
@brentvatne : Thanks! Looks like I wasn't quick enough to grab this one, though. I'll look for another "Good first task" issue to tackle. |
@jedlau Care to give this a shot? |
Should this issue be closed now? |
Yes, closing. |
v0.11.0-rc introduces status bar change events through the DeviceEventEmitter. How should I be getting the initial dimensions of the status bar (i.e., before any events fire)? The use case is so that I can size my view appropriately when it first mounts, and the status bar is not the normal 20 pts. in height (e.g., hotspot or maps navigation is on).
The text was updated successfully, but these errors were encountered: