### Install ActionSheet with bun Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/installation.mdx Use this command to install the main library with bun. ```bash bun add react-native-actions-sheet ``` -------------------------------- ### Install ActionSheet with pnpm Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/installation.mdx Use this command to install the main library with pnpm. ```bash pnpm add react-native-actions-sheet ``` -------------------------------- ### Install react-native-actions-sheet Source: https://context7.com/ammarahm-ed/react-native-actions-sheet/llms.txt Install the library and its peer dependencies using yarn. ```bash yarn add react-native-actions-sheet react-native-reanimated react-native-gesture-handler react-native-safe-area-context ``` -------------------------------- ### Install ActionSheet with npm Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/installation.mdx Use this command to install the main library with npm. ```bash npm install react-native-actions-sheet ``` -------------------------------- ### Install ActionSheet with yarn Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/installation.mdx Use this command to install the main library with yarn. ```bash yarn add react-native-actions-sheet ``` -------------------------------- ### Install Dependencies with bun Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/installation.mdx Install the required peer dependencies for ActionSheet using bun. ```bash bun add react-native-reanimated react-native-gesture-handler react-native-safe-area-context ``` -------------------------------- ### Install Dependencies with pnpm Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/installation.mdx Install the required peer dependencies for ActionSheet using pnpm. ```bash pnpm add react-native-reanimated react-native-gesture-handler react-native-safe-area-context ``` -------------------------------- ### Install Dependencies for v10.0.0 Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/guides/migrate.mdx Install react-native-reanimated and react-native-safe-area-context as peer dependencies for v10.0.0. ```bash npm install react-native-reanimated react-native-safe-area-context ``` -------------------------------- ### Install Dependencies with npm Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/installation.mdx Install the required peer dependencies for ActionSheet using npm. ```bash npm install react-native-reanimated react-native-gesture-handler react-native-safe-area-context ``` -------------------------------- ### Install Dependencies with yarn Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/installation.mdx Install the required peer dependencies for ActionSheet using yarn. ```bash yarn add react-native-reanimated react-native-gesture-handler react-native-safe-area-context ``` -------------------------------- ### Start Metro Bundler Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/example/README.md Run this command to start the Metro JavaScript bundler, which is essential for React Native development. ```sh # Using npm npm start # OR using Yarn yarn start ``` -------------------------------- ### Install react-native-gesture-handlers Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/guides/migrate.mdx Install react-native-gesture-handlers as a dependency for v0.9.0, which is often already present in React Native projects. ```bash npm install react-native-gesture-handlers ``` -------------------------------- ### Install CocoaPods Dependencies Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/example/README.md Before running the iOS app, install the necessary CocoaPods dependencies. This is typically done once or after updating native dependencies. ```sh bundle install bundle exec pod install ``` -------------------------------- ### useSheetRef Usage Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/reference/usesheetref.mdx This snippet demonstrates how to use the `useSheetRef` hook to get a sheet's reference and call methods on it. ```APIDOC ## useSheetRef Returns the current sheet's [ref](./actionsheetref.mdx). ```ts // Some where in your sheet's component tree. const ref = useSheetRef("example-sheet"); // Use methods on the current sheet. ref.hide(); ``` ``` -------------------------------- ### ConfirmSheet Component Implementation Source: https://github.com/ammarahm-ed/react-native-actions-sheet/blob/master/docs/pages/guides/getdata.mdx Implement the ActionSheet component, handling user interactions to hide the sheet and return a value. This example shows a confirmation sheet with 'Yes' and 'No' buttons. ```tsx function ConfirmSheet(props: SheetProps<"confirm-sheet">) { return ( {props.payload?.message}