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>
);