@cawfree/react-native-collapsible-view

1.0.13 • Public • Published

react-native-collapsible-view

A <Collapsible/> component for react-native that plays nicely with Android.

🚀 Getting Started

Using npm:

npm install --save @cawfree/react-native-collapsible-view

Using yarn:

yarn add @cawfree/react-native-collapsible-view

✍️ Usage

import React from 'react';
import { View, Text } from 'react-native';
import Collapsible from '@cawfree/react-native-collapsible-view';

export default ({ collapsed, ...nextProps }) => (
  <Collapsible
    collapsed={collapsed}
    duration={500}
  >
    <View
      style={{
        width: 100,
        height: 100,
        backgroundColor: 'orange',
        alignItems: 'center',
        justifyContent: 'center',
      }}
    >
      <Text
      >
        {'Boo!'}
      </Text>
    <View>
  </Collapsible>
);

✌️ License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.13
    1
    • latest

Version History

Package Sidebar

Install

npm i @cawfree/react-native-collapsible-view

Weekly Downloads

1

Version

1.0.13

License

MIT

Unpacked Size

241 kB

Total Files

91

Last publish

Collaborators

  • cawfree