Skip to content

BruceSuperProgramer/react-native-reanimated-accordion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-reanimated-accordion

A React Native accordion component that run at 60 fps, even on low-end devices.

Screenshot of React Native accordion

Installation

  1. Run: $ npm install --save react-native-reanimated-accordion or yarn add react-native-reanimated-accordion
  2. As react-native-reanimated and react-native-vector-icons are peer dependencies, ensure you have them installed and linked properly. Check peer dependencies on package.json file make sure correct version installed.

Usage

import Accordion from "react-native-reanimated-accordion";

const App = () => (
  <Accordion
    headerComponent={
      <View>
        <Text>Header</Text>
      </View>
    }
    bodyComponent={
      <View
        style={{
          backgroundColor: "green",
          width: "100%",
          height: 500
        }}
      >
        <Text>Content</Text>
      </View>
    }
  />
);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published