1.0.0 • Published 1 year ago

@snskar125/rn-bottomsheet v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

@snskar125/rn-bottomsheet

Bottomsheet Component for React Native

Usage

import Bottomsheet from "@snskar125/rn-bottomsheet";
import { Button } from "react-native";
import { useRef } from "react";
export default function App() {
  const bottomSheet = useRef();
  return (
    <>
      <Button
        onPress={() => {
          bottomSheet.current?.open();
        }}
        title={"Bottomsheet"}
      />
      <Bottomsheet ref={bottomSheet} />
    </>
  );
}

Props

PropType
heightNumber
openDurationNumber
closeDurationNumber
containerStyleView Style
closeOnBackdropPressBoolean
closeOnBackPressBoolean
showDragIconContainerBoolean
iconContainerStyleView Style
dragIconElement
closeOnDragDownBoolean
backdropOpacityNumber

Methods

open() close()