0.0.1 • Published 6 years ago

react-native-popups v0.0.1

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

react-native-popups

Installation

npm i -S react-native-popups
import { Popup } from 'react-native-popups'

Props

PopMenu

PropDefaultTypeDescription
list0numberRight inset of separator
title-stringTitle of PopMenu
visiblefalseboolPopMenu visible

PopMenu.Item

PropDefaultTypeDescription
style{alignItems: 'center', justifyContent: 'center', padding: 15}StyleItem's style
text-stringText of the item
props-PropsReact Native props

Example

<PopMenu visible={visible} title="Menu Title" list={[
    {text: 'Item 1', value: 1},
    {text: 'Item 2', value: 2},
    {text: 'Item 3', value: 3}
]} onClose={() => this.setState({visible: false})}
   onItem={item => this.onItem(item)}/>

<PopMenu visible title="With Children">
    <PopMenu.Item onPress={() => this.onItem(1)} text="Item 1"/>
    <Text>Item 2<Text>
    <Text>Item 3<Text>
</PopMenu>