react-native-inflatable

1.0.6 • Public • Published

REACT-NATIVE-INFLATABLE

A react-native component that toggles the display of sub-content with a smooth opening and closing transition.

Prerequisites

react react-native

Installing

npm install --save react-native-inflatable

DEMO

Watch the video

How To Use

"Wrap any two viewable children in the inflatable component. The first child is used as the "clickable" main content to display the second child's content. The inflatable component can take a prop called "inflated" that when provided will display the sub-content immediately".

    import Inflatable from "react-native-inlatable"

    example 1.
    <Inflatable>
        <PutYourMainContentHere></PutYourMainContentHere>
        <PutYourSubContentHere></PutYourSubContentHere>
    </Inflatable>    

    example 2.
    <Inflatable inflated>
        <View>
            <MainContent></MainContent>
        </View>
        <View>
            <SubContent></SubContent>
        </View>
    </Inflatable>    

Authors

  • Ed Sweezey - Initial work -

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Package Sidebar

Install

npm i react-native-inflatable

Weekly Downloads

2

Version

1.0.6

License

none

Unpacked Size

2.94 kB

Total Files

4

Last publish

Collaborators

  • sweezey