1.0.2 • Published 6 years ago

react-native-expandable v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

React Native Expandable

npm version

Expandable/collapsible container for react-native

Installation

yarn add react-native-expandable

Props

Prop NameValue
titlestring
collapsedboolean

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