1.0.0 • Published 5 years ago

react-native-animated-popover v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

react-native-animated-popover

A simple container to create an animated popover in React Native

Installation

Using yarn:

yarn add react-native-animated-popover

Using npm:

npm install react-native-animated-popover

Props

namedescriptiondefault
closedHeightHeight of the container when closed127
openHeightHeight of the container when opened348
alwaysOpenContainer stay open all the timefalse
defaultIndexIndex for the ScrollView. Shows content when no other index is profided0
styleStyle for the outermost container
contentStyleStyle for the content{paddingHorizontal: 8}
indicatorColorColor of the indicatorwhite
onLayoutFunction gets called by onLayout of outermost container
popoverComponents to be rendered inside the popover

Methods

namedescription
open(index)Opens the popover at index. Defaults to 0
closeCloses the popover
toggle(index)Toggles the state of the popover. Index defaults to 0