All Projects → lequanghuylc → react-native-detect-navbar-android

lequanghuylc / react-native-detect-navbar-android

Licence: MIT license
React Native module that tells if android device has soft navigation bar.

Programming Languages

java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-detect-navbar-android

Mtransparentnav
Change NavigationBar's color and transparency 导航栏颜色渐变,通过给viewController添加属性,可方便控制title、item、导航栏颜色变化
Stars: ✭ 109 (+678.57%)
Mutual labels:  navigationbar
Easydropdown
💧 Fantastic dropdown in Swift
Stars: ✭ 254 (+1714.29%)
Mutual labels:  navigationbar
LLNavigationController
This is a subClass Of UINavigationController.本导航条继承UINavigationController,自定义滑动返回手势与滑动动画,同时可自定义过场动画,解决了手势共存时的冲突。在系统类的基础上进行扩展,节约性能,无任何代码耦合度,可随时集成与剥离。支持iOS7以上系统,兼容iOS11,版本稳定。
Stars: ✭ 20 (+42.86%)
Mutual labels:  navigationbar
Ios.blog.swiftui search bar in navigation bar
🔍 SwiftUI search bar in the navigation bar.
Stars: ✭ 124 (+785.71%)
Mutual labels:  navigationbar
Zxnavigationbar
灵活轻量的自定义导航栏,导航栏属于控制器view,支持导航栏联动,一行代码实现【导航栏背景图片设置、导航栏渐变、折叠、修改Item大小和边距、自定义导航栏高度、全屏手势返回、pop拦截、仿系统导航栏历史堆栈】等各种效果
Stars: ✭ 230 (+1542.86%)
Mutual labels:  navigationbar
AHCategoryView
A navigation view for categories
Stars: ✭ 29 (+107.14%)
Mutual labels:  navigationbar
Bubble Navigation
🎉 [Android Library] A light-weight library to easily make beautiful Navigation Bar with ton of 🎨 customization option.
Stars: ✭ 1,537 (+10878.57%)
Mutual labels:  navigationbar
angular-scrollspy
A simple lightweight library for Angular which automatically updates links to indicate the currently active section in the viewport
Stars: ✭ 34 (+142.86%)
Mutual labels:  navigationbar
Teaset
A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
Stars: ✭ 2,845 (+20221.43%)
Mutual labels:  navigationbar
WXNavigationBar
Handle UINavigationBar like WeChat. Simple and easy to use.
Stars: ✭ 116 (+728.57%)
Mutual labels:  navigationbar
React Site Nav
A kick ass site menu powered by styled components inspired by Stripe.
Stars: ✭ 155 (+1007.14%)
Mutual labels:  navigationbar
Tiptoes
Simple navigation bar in the bottom, a beautiful discretion in your UI.
Stars: ✭ 221 (+1478.57%)
Mutual labels:  navigationbar
BottomNavigationBar
A light bottom navigation bar in Android supporting Tint mode.
Stars: ✭ 48 (+242.86%)
Mutual labels:  navigationbar
Edge To Edge
Full screen Android apps using simple Kotlin DSL
Stars: ✭ 118 (+742.86%)
Mutual labels:  navigationbar
react-native-floating-action-bar
A React Native floating action bar.
Stars: ✭ 39 (+178.57%)
Mutual labels:  navigationbar
Systemuihelper
Helper for dealing with Android System UI visibility
Stars: ✭ 108 (+671.43%)
Mutual labels:  navigationbar
RRNavigationBar
bring UINavigationBar to UIViewController.
Stars: ✭ 11 (-21.43%)
Mutual labels:  navigationbar
bsnav
An extended Bootstrap 4 menu with a bunch of utilities
Stars: ✭ 90 (+542.86%)
Mutual labels:  navigationbar
wx-mini-navigationbar
微信小程序自定义标题栏
Stars: ✭ 20 (+42.86%)
Mutual labels:  navigationbar
FloatOnKeyboardLayout
The Android layout (ViewGroup) which auto push up when soft keyboard popups。 当软键盘弹出时,界面自动上浮,使界面不会被软键盘遮挡
Stars: ✭ 36 (+157.14%)
Mutual labels:  softkeyboard

react-native-detect-navbar-android

Detect soft navigation bar for Android devices, so you'll know which one has physical keys (Home, Back, Menu) and which does not.

Note: this project is Android only, and it will not work if you use it to detect soft key being hidden. Pull Request is welcomed.

Installation Process

  • download this from npm
npm install react-native-detect-navbar-android --save
  • Run react-native link or...

  • Edit android/settings.gradle:

    + include ':react-native-detect-navbar-android'
    + project(':react-native-detect-navbar-android').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-detect-navbar-android/android')
  • Edit android/app/build.gradle:

    dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile "com.android.support:appcompat-v7:23.0.1"
      compile "com.facebook.react:react-native:+"
    + compile project(':react-native-detect-navbar-android')
    }
  • Edit your android/app/src/main/java/.../MainApplication.java:

    + import import com.rndetectnavbarandroid.RNDetectNavbarAndroidPackage;
      @Override
      protected List<ReactPackage> getPackages() {
        return Arrays.<ReactPackage>asList(
          new MainReactPackage()
    +     , new RNDetectNavbarAndroidPackage()
        );
      }

Usage

import DetectNavbar from 'react-native-detect-navbar-android';
// or
import {DetectNavbar} from 'react-native-detect-navbar-android';
// or
const DetectNavbar = require('react-native-detect-navbar-android');

// methods (Android Only, don't call on iOS)
DetectNavbar.hasSoftKeys().then((bool) => {
  if(bool) {
    console.log('Has Soft NavBar');
  } else {
    console.log('Has Hard Key NavBar');
  }
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].