React Native Draggable Backdrop
It's something like sliding up panel in android. Written in pure js.
Usage
installation :
npm install react-native-draggable-backdrop --save
import :
import DraggableBackdrop from 'react-native-draggable-backdrop';
usage :
import React Component from 'react';import Platform StyleSheet View Dimensions Text from 'react-native';import DraggableBackdrop from 'react-native-draggable-backdrop'; const instructions = Platform; type Props = ;<Props> { ; } { return <View = > <Text> instructions </Text> <DraggableBackdrop = ='white' > <Text> hello </Text> </DraggableBackdrop> </View> ; } const styles = StyleSheet;
props :
marginHorizontal: numeric
backgroundColor: string
radius: numeric
elevation: numeric
onExpand: function
indicatorColor: string
showBackground: boolean // shows background
handleBackPress: boolean // collapse on backpress
functions:
expand()
collapse()