Skip to content
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

StatusBar style different between standalone app and expo app #28

Open
AndreiRadchenko opened this issue Apr 24, 2024 · 1 comment
Open

Comments

@AndreiRadchenko
Copy link
Owner

AndreiRadchenko commented Apr 24, 2024

On Android release .apk main view doesn't cover status bar. In Expo Go and development build it does.
expo/expo#3874

@AndreiRadchenko
Copy link
Owner Author

To fix it, I'd added next code to the app.js after import

import { StatusBar, Platform } from 'react-native';

StatusBar.setBarStyle('dark-content');

if (Platform.OS === 'android') {
  StatusBar.setTranslucent(true);
  StatusBar.setBackgroundColor('transparent');
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant