Animated Panel List
Used to add a top panel to a list for filtering, ... which gets out of the way when scrolling.
Last updated
Used to add a top panel to a list for filtering, ... which gets out of the way when scrolling.
Last updated
import { AnimatedPanelList } from '@dormakaba/digital-reactnative-visual';
<AnimatedPanelList
withSections
navbarHeight={110}
keyExtractor={(item, index) => item._id}
data={getData(persons)}
panel={
<View style={{ flex: 1, justifyContent: 'flex-start', backgroundColor: colors.backgroundGray, padding: 10, paddingTop: 0 }}>
<Textfield icon="icon-search" placeholder="search" noBorder />
<Button primary block containerStyle={{ marginTop: 10 }}>Add Person</Button>
</View>
}
renderItem={({ item }) => {
return (
<List.Item
onPress={action('clicked-item')}
success={item.firstname.charAt(0) === "J"}
warning={item.firstname.charAt(0) === "L"}
title={`${item.firstname} ${item.lastname}`}
text="lorem ipsum dolores opsi quantum oretasi."
icon="icon-badge"
rightIcon="icon-profile"
/>
);
}}
/>