Expandable container for react-native
Expandable/collapsible container for react-native
yarn add react-native-expandable
Prop Name | Value |
---|---|
title |
string |
collapsed |
boolean |
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>;