Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 838 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 838 Bytes

react-native-draggable-fab

Draggable FAB for react native

Installation

npm install react-native-draggable-fab

Usage

import DraggableFab from "react-native-draggable-fab";

// ...

<CoordinatorLayout
  style={{
    flex: 1,
  }}
>
  <View style={styles.container}>
    <Text>Tapped Item: {tappedItem}</Text>
    <IconMDI name="add" size={42} color="#000" />
    <Fab
      animateType={LabelAnimation.SlideLeft}
      itemLabels={['test1', 'test2', 'test3']}
      onItemTap={onTapItem}
      icon="atm"
      onPress={onPress}
      iconProvider={IconMDI}
      iconColor="#fff"
      backgroundColor="#000000"
    />
  </View>
</CoordinatorLayout>

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT