cawfree / react-native-collapsible-view

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Buy @cawfree a coffee

About

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

License:MIT License


Languages

Language:JavaScript 43.4%Language:Objective-C 30.8%Language:Python 15.4%Language:Java 10.5%