Skip to content

yezarela/react-native-expandable

Repository files navigation

React Native Expandable

npm version

Expandable/collapsible container for react-native

Installation

yarn add react-native-expandable

Props

Prop Name Value
title string
collapsed boolean

Usage

import Expandable from 'react-native-expandable';


<ScrollView showsVerticalScrollIndicator={false}>
  <View style={{ height: '100%' }}>
    <Expandable title="Amazing Title" collapsed={false}>
      <View style={{ flexDirection: 'row', alignItems: 'center' }}>
        <View style={{ flex: 1 }}>
          <Text>Amazing!</Text>
        </View>
      </View>
    </Expandable>
  </View>
</ScrollView>;

About

Expandable container for react-native

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages