Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get status bar height react native

import {NativeModules} from 'react-native';
const {StatusBarManager} = NativeModules;
const STATUSBAR_HEIGHT = Platform.OS === 'ios' ? 20 : StatusBarManager.HEIGHT;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #status #bar #height #react #native
ADD COMMENT
Topic
Name
1+7 =