0.1.0 • Published 1 year ago

react-native-accordion-collapsible v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-accordion-collapsible

Reanimated v2 version npm npm runs with expo


Accordion Collapsible component for React Native


demo

Features

  • For iOS and Android
  • Full customizable
  • Compatible with Expo.

Installation

npm install react-native-accordion-collapsible react-native-reanimated

*required react-native-reanimated v3


Usage

import { View, Text } from 'react-native'
import Accordion from 'react-native-accordion-collapsible';

// ...

<Accordion headerText='Lorem ipsum' style={styles.accordion} styleContent={accordionContent}>
  <Text>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Nam eu massa viverra, malesuada metus sed, malesuada dui.
  </Text>
</Accordion>



const styles = StyleSheet.create({
  accordion: {
    marginTop: 150,
    marginHorizontal: 20
  },
  accordionContent: {
    paddingTop: 10
  }
})

API

PropTypeRequiredDescription
childrenReactNativeElementYesAccordion content
headerTextstringYesAccordion Title
iconRightReactNativeElementNochevron icon
styleStylesNoAccordion styles
styleContentStylesNostyles for the content container
styleHeaderStylesNoheader container styles
styleHeaderIconContainerStylesNostyles for iconRight container
styleHeaderTextStylesNoStyles for header text
openBooleanNoset if open
delayTimeToOpenNumberNoValue in millisecond. If no set value and open is true, the default value is 0

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago