Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lvlrSajjad/react-native-expandable-fab-menu

React Native Expandable Fab Menu Component (pure js)
https://github.com/lvlrSajjad/react-native-expandable-fab-menu

react-native react-native-component react-native-expandable react-native-expandable-fab react-native-expandable-fab-menu react-native-fab react-native-fab-menu react-native-menu

Last synced: 5 days ago
JSON representation

React Native Expandable Fab Menu Component (pure js)

Awesome Lists containing this project

README

        

# react-native-expandable-fab-menu [![npm version](https://img.shields.io/npm/v/react-native-expandable-fab-menu.svg)](https://www.npmjs.com/package/react-native-expandable-fab-menu)

## Getting started

`$ npm install react-native-expandable-fab-menu --save`

## Props
closeIcon,openIcon = React Native Component (You Can Use Image Component or vector icon components or
anything you want, recommanded width and height are 32)

menuIcons = array of React Native Component recommanded width and height are 24 , maximum lenght is 4

menuItemClicked= function returned index is index of menuIcons array

## Usage
```javascript
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, TouchableOpacity, Image} from 'react-native';
import {ExpandableFabMenu} from 'react-native-expandable-fab-menu';

type Props = {};
export default class App extends Component {
render() {
return (





}
openIcon={

}
menuIcons={[
,
,
,

]}
menuItemClicked={(index) => console.log(index)}
/>

);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#EEEEEE',
},
});

```