1.0.0 • Published 6 years ago

rn-halcyon-action-sheet v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

rn-halcyon-action-sheet


Installation

requires you to install react-native-vector-icons

yarn add react-native-vector-icons

then

yarn add rn-halcyon-action-sheet

only use Yarn if you want to install this package


Usage

const actionItems = [
    {
      title: "Item 1",
      onPress: () => console.log('item 1'),
      danger: true,
    },
    {
      title: "Item 2",
      onPress: () => console.log('item 2'),
      icon: "map",
    },
    {
      title: "Item 3",
      onPress: () => console.log('item 3'),
    },
    {
      title: "Item 4",
      onPress: () => console.log('item 4'),
      icon: "food",
      danger: true,
    },
  ];

<Button
  title="show ActionSheet"
  onPress={() => showActionSheet("Action Sheet", actionItems)}
/>
1.0.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago