0.2.1 • Published 4 years ago

@anvilapp/react-native-bottom-sheet v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Install

using npm

npm install @anvilapp/react-native-bottom-sheet --save

or using yarn

yarn add @anvilapp/react-native-bottom-sheet

Usage example

import BottomSheet, {ComposingTypes, PositionTypes} from '@anvilapp/react-native-bottom-sheet';

const bottomSheetRef = React.createRef();

<BottomSheet
    ref={bottomSheetRef}
    showComposingType={ComposingTypes.PARALLEL}
    hideComposingType={ComposingTypes.PARALLEL}
    position={PositionTypes.BOTTOM}
    showOverlayDuration={150}
    hideOverlayDuration={150}
    showContentDuration={150}
    hideContentDuration={150}
    dragTopOnly={true}
    visibleDragIcon={true}
    draggable
    onBackButtonPress={() => console.log('onBackButtonPress')}
    onOverlayPress={() => console.log('onOverlayPress')}
    onDragDown={() => console.log('onDragDown')}
/>

bottomSheetRef.current.open({
    render: () => {
        // Use any of your components
        return <BottomSheetContent/>;
    }
    // extra options
});
0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago