npm

Need private packages and team management tools?Check out npm Orgs. »

@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

install

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

Downloadsweekly downloads

7

version

1.0.13

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability