المشاريع
عرض على GitHub Usage
ovr/react-native-status-bar-height
حول
مكتبة صغيرة تساعدك في الحصول على ارتفاع شريط الحالة. ملاحظة: تدعم 📱X ❤️
أدوات التطويرالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلreact-native-status-bar-height
Small library that helps you to get status bar height
P.S. iPhone X supported :heart:
Install
$ npm install --save react-native-status-bar-height
# OR
$ yarn add react-native-status-bar-height
Usage getStatusBarHeight(skipAndroid: boolean = false)
import { getStatusBarHeight } from 'react-native-status-bar-height';
// 44 - on iPhone X
// 20 - on iOS device
// X - on Android platfrom (runtime value)
// 0 - on all other platforms (default)
console.log(getStatusBarHeight());
// Will be 0 on Android, because you pass true to skipAndroid
console.log(getStatusBarHeight(true));
License
This project is open-sourced software licensed under the MIT License.
See the LICENSE file for more information.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…