All Projects → idlework → react-native-floating-action-bar

idlework / react-native-floating-action-bar

Licence: MIT license
A React Native floating action bar.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to react-native-floating-action-bar

Musicalyoutube
A Youtube floating PIP player for Android.
Stars: ✭ 50 (+28.21%)
Mutual labels:  floating
Mnfloatbtn
iOS全局悬浮按钮,显示 / 切换当前API环境与版本 ,掌握和测试撕逼主动权~
Stars: ✭ 168 (+330.77%)
Mutual labels:  floating
BottomNavigationBar
A light bottom navigation bar in Android supporting Tint mode.
Stars: ✭ 48 (+23.08%)
Mutual labels:  navigationbar
Hhfloatingview
An easy to use and setup floating view for your app. 🎡
Stars: ✭ 93 (+138.46%)
Mutual labels:  floating
Coordinatormenu
The library creates a floating menu like the app momo, vtcpay, wepay
Stars: ✭ 160 (+310.26%)
Mutual labels:  floating
Floating.js
Float a number of things up on a page (hearts, flowers, emojis, words ...)
Stars: ✭ 209 (+435.9%)
Mutual labels:  floating
Settingscompat
特殊权限(Special Permissions)兼容库,悬浮窗权限(SYSTEM_ALERT_WINDOW)与系统设置修改权限(WRITE_SETTINGS)
Stars: ✭ 942 (+2315.38%)
Mutual labels:  floating
WXNavigationBar
Handle UINavigationBar like WeChat. Simple and easy to use.
Stars: ✭ 116 (+197.44%)
Mutual labels:  navigationbar
Rhsidebuttons
Library provides easy to implement variation of Android (Material Design) Floating Action Button for iOS. You can use it as your app small side menu. 🌶
Stars: ✭ 164 (+320.51%)
Mutual labels:  floating
AHCategoryView
A navigation view for categories
Stars: ✭ 29 (-25.64%)
Mutual labels:  navigationbar
Jvfloatingdrawer
An easy to use floating drawer view controller.
Stars: ✭ 1,424 (+3551.28%)
Mutual labels:  floating
Flutteringlayout
🎈 一个直播间点赞桃心飘动效果的控件
Stars: ✭ 145 (+271.79%)
Mutual labels:  floating
RRNavigationBar
bring UINavigationBar to UIViewController.
Stars: ✭ 11 (-71.79%)
Mutual labels:  navigationbar
Magnetic
SpriteKit Floating Bubble Picker (inspired by Apple Music) 🧲
Stars: ✭ 1,252 (+3110.26%)
Mutual labels:  floating
React-Native-top-navbar
This reactnative package provides custom header component for mobile apps. also providing utility method to change statusbar color.
Stars: ✭ 27 (-30.77%)
Mutual labels:  actionbar
Sma
Calculate the simple moving average of an array.
Stars: ✭ 48 (+23.08%)
Mutual labels:  floating
Floatingkeyboard
A Draggable and Floating KeyboardView for android that several EditText's can register to use it.
Stars: ✭ 204 (+423.08%)
Mutual labels:  floating
LLNavigationController
This is a subClass Of UINavigationController.本导航条继承UINavigationController,自定义滑动返回手势与滑动动画,同时可自定义过场动画,解决了手势共存时的冲突。在系统类的基础上进行扩展,节约性能,无任何代码耦合度,可随时集成与剥离。支持iOS7以上系统,兼容iOS11,版本稳定。
Stars: ✭ 20 (-48.72%)
Mutual labels:  navigationbar
MusicalYoutube
A Youtube floating PIP player for Android.
Stars: ✭ 52 (+33.33%)
Mutual labels:  floating
react-native-floating-label-input
A customizable React Native TextInput with its placeholder always shown. Includes masks, global styles, character count, and a bunch else.
Stars: ✭ 206 (+428.21%)
Mutual labels:  floating

react-native-floating-action-bar

A React Native floating action bar.

Horizontal action bar Vertical action bar
Horizontal action bar Vertical action bar

Installation

npm

$ npm i react-native-floating-action-bar --save

yarn

$ yarn add react-native-floating-action-bar

Additional package install

This project depends (for now) on react-native-vector-icons. If you dont have this package already in your project, please add this by following react-native-vector-icons installation instructions.

Usage

import

import FloatingActionBar from 'react-native-floating-action-bar';

basic

<FloatingActionBar
  items={[{icon: 'taxi'}, {icon: 'subway'}, {icon: 'train'}, {icon: 'bus'}]}
  onPress={handlePress}
/>

maxed out

<FloatingActionBar
  items={[
    {
      icon: 'taxi',
      color: 'rgb(130, 130, 130)',
      activeColor: 'rgb(3, 137, 253)',
      activeBackgroundColor: 'rgb(224, 243, 255)',
    },
    {
      icon: () => <Icon name="subway" />,
      color: 'rgb(130, 130, 130)',
      activeColor: 'rgb(3, 137, 253)',
      activeBackgroundColor: 'rgb(224, 243, 255)',
    },
    {
      icon: ({active}) => (
        <Icon
          name="train"
          color={active ? 'rgb(3, 137, 253)' : 'rgb(130, 130, 130)'}
        />
      ),
      color: 'rgb(130, 130, 130)',
      activeColor: 'rgb(3, 137, 253)',
      activeBackgroundColor: 'rgb(224, 243, 255)',
    },
    {
      icon: ({active, activeColor, color, icon, size}) => (
        <Icon name={icon} size={size} color={active ? activeColor : color} />
      ),
      color: 'rgb(130, 130, 130)',
      activeColor: 'rgb(3, 137, 253)',
      activeBackgroundColor: 'rgb(224, 243, 255)',
    },
  ]}
  offset={50}
  onPress={handlePress}
  position="bottom"
  selectedIndex={0}
  style={styles.floatingActionBar}
/>

Interface

items

Accepts an array with objects. The object is used to generate and style the action bar items.

item interface

{
  icon: 'taxi' || Your own icon render function,
  color: 'rgb(130, 130, 130)', // optional
  activeColor: 'rgb(3, 137, 253)', // optional
  activeBackgroundColor: 'rgb(224, 243, 255)', // optional
}

offset (optional)

Accepts a number. Offsets the action bar by given number.

position (optional)

Accepts a string containing one of these types: top, bottom, left, right. This property positions the action bar to the given position. With top or bottom the action bar renders as a row, with left or right the action bar renders as a column.

onPress (optional)

Accepts a function. returns the selected index.

selectedIndex (optional)

Accepts an int. Can be used to set initial index.

style (optional)

Accepts a StyleSheet style or an object. This allows you to style the container.

Contributing

Issues are welcome. The best way to report a problem is to reproduce it with a code example.

Pull requests are welcome. If you want to change the API, it's better to discuss it using an issue ticket.

License

react-native-floating-action-bar is MIT licensed.

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].