@expo/react-native-action-sheet vs react-native-action-sheet vs react-native-actionsheet
Implementing Native Action Sheets in React Native
@expo/react-native-action-sheetreact-native-action-sheetreact-native-actionsheetSimilar Packages:

Implementing Native Action Sheets in React Native

@expo/react-native-action-sheet, react-native-action-sheet, and react-native-actionsheet are libraries designed to display native-style action sheets (bottom drawers with options) in React Native applications. While they share a similar goal, they differ significantly in maintenance status, platform support, and integration with the Expo ecosystem. @expo/react-native-action-sheet is the actively maintained fork specifically optimized for Expo Managed Workflow and modern React Native versions. react-native-action-sheet is a community fork that attempts to bridge gaps but lacks the official backing of Expo. react-native-actionsheet is the original library by @beefe, which is now deprecated and unmaintained, posing significant risks for new projects due to lack of support for modern iOS/Android versions and React Native architecture.

Npm Package Weekly Downloads Trend

3 Years

Github Stars Ranking

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
@expo/react-native-action-sheet288,8511,576177 kB32a year agoMIT
react-native-action-sheet0185239 kB20-MIT
react-native-actionsheet01,35815.6 kB104-MIT

React Native Action Sheets: Choosing the Right Library for Native UI

Displaying a list of options in a bottom drawer (Action Sheet) is a common pattern in mobile apps. While React Native provides Alert.alert for simple confirmations, complex menus with icons, destructive actions, and cancel buttons require a dedicated library. The ecosystem offers three main candidates: @expo/react-native-action-sheet, react-native-action-sheet, and the original react-native-actionsheet. However, not all are created equal. Let's dive into the technical realities of each.

🚨 Maintenance Status: The Dealbreaker

Before looking at APIs, we must address the elephant in the room: maintenance.

react-native-actionsheet is the original library created by @beefe. It served the community well for years but is now deprecated. The repository is archived, and it has not been updated to support modern React Native versions (0.60+ with auto-linking) or recent iOS/Android design guidelines. Using this in a new project is a critical architectural error.

// ❌ AVOID: react-native-actionsheet
// This package is unmaintained. Installation often requires manual linking,
// which is error-prone and unsupported in modern React Native CLI workflows.
import ActionSheet from 'react-native-actionsheet';
// Risk: Crashes on iOS 15+ or Android 12+ due to outdated native code.

@expo/react-native-action-sheet is the official fork maintained by the Expo team. It is actively developed, regularly updated to match native OS changes, and fully supports the Expo Managed Workflow via Config Plugins. It is the de facto standard for modern React Native development.

// ✅ RECOMMENDED: @expo/react-native-action-sheet
// Actively maintained, supports auto-linking, and works seamlessly with Expo.
import { ActionSheetProvider } from '@expo/react-native-action-sheet';

react-native-action-sheet is a community fork that attempted to keep the original alive. While it may work in some bare workflows, it lacks the rigorous testing and guarantee of the official Expo package. It sits in a middle ground that is generally unnecessary given the quality of the Expo fork.

// ⚠️ CAUTION: react-native-action-sheet
// A community fork. Only consider if you have a specific bare-workflow constraint
// that the Expo package doesn't meet (which is rare).
import { ActionSheetProvider } from 'react-native-action-sheet';

🏗️ Setup and Integration

The setup experience varies drastically between the maintained and deprecated options.

@expo/react-native-action-sheet leverages React Context and modern auto-linking. In Expo Managed Workflow, you don't even need to touch native code; the Config Plugin handles it. In bare workflows, it links automatically.

// @expo/react-native-action-sheet setup
import { ActionSheetProvider } from '@expo/react-native-action-sheet';

export default function App() {
  return (
    <ActionSheetProvider>
      <MainNavigator />
    </ActionSheetProvider>
  );
}

// Usage in a component
import { useActionSheet } from '@expo/react-native-action-sheet';

function MyComponent() {
  const { showActionSheetWithOptions } = useActionSheet();
  
  const handlePress = () => {
    const options = ['Delete', 'Cancel'];
    const destructiveIndex = 0;
    const cancelIndex = 1;

    showActionSheetWithOptions({ options, destructiveIndex, cancelIndex }, (selectedIndex) => {
      if (selectedIndex === 0) { /* Delete logic */ }
    });
  };
}

react-native-actionsheet (the deprecated one) often required manual linking in older RN versions and relies on legacy native modules. It does not support the modern Context-based hook pattern as cleanly without wrappers, forcing developers to use refs or higher-order components.

// react-native-actionsheet (Legacy pattern)
import ActionSheet from 'react-native-actionsheet';

class MyComponent extends React.Component {
  showSheet = () => {
    this.ActionSheet.show();
  };

  render() {
    return (
      <View>
        <Button title="Show" onPress={this.showSheet} />
        <ActionSheet
          ref={o => (this.ActionSheet = o)}
          title={'Select an option'}
          options={['Delete', 'Cancel']}
          cancelButtonIndex={1}
          destructiveButtonIndex={0}
        />
      </View>
    );
  }
}

react-native-action-sheet (the community fork) mimics the Expo API structure but may require additional native configuration steps if auto-linking fails in complex bare projects.

// react-native-action-sheet (Community fork setup)
import { ActionSheetProvider } from 'react-native-action-sheet';

// Similar Context usage to Expo, but verify native build success manually
export default function App() {
  return (
    <ActionSheetProvider>
      <MainNavigator />
    </ActionSheetProvider>
  );
}

🎨 Feature Parity and Native Look

All three libraries aim to wrap the native UIActionSheet (iOS) and BottomSheetDialog (Android). However, only the actively maintained ones keep up with OS updates.

iOS Support:

  • @expo/react-native-action-sheet: Fully supports iOS 13+ dark mode, safe areas, and the new sheet presentation styles. It adapts to iPad popover presentations automatically.
  • react-native-actionsheet: Uses deprecated iOS APIs. On iOS 13+, it may appear visually broken or fail to present correctly in certain modal contexts.
  • react-native-action-sheet: Generally supports modern iOS, but edge cases on new OS betas are slower to be fixed compared to the Expo package.
// All packages use similar options objects, but results vary on new OS versions
const options = {
  options: ['Share', 'Edit', 'Delete', 'Cancel'],
  cancelButtonIndex: 3,
  destructiveButtonIndex: 2,
  title: 'Select Action',
  // @expo package handles iPad popover anchors better
  anchor: undefined // Supported in modern forks for iPad
};

Android Support:

  • @expo/react-native-action-sheet: Wraps the modern BottomSheetDialog with proper theme inheritance (Dark/Light) and ripple effects.
  • react-native-actionsheet: May use older dialog themes that clash with Material Design 3 updates in recent Android versions.
  • react-native-action-sheet: Acceptable support, but styling customization can be inconsistent across different Android OEM skins.

🔄 Handling Asynchronous Actions

A common requirement is to show a loading state or perform async work after selection. The modern hook-based API of @expo/react-native-action-sheet makes this cleaner with functional components.

Using @expo/react-native-action-sheet: You can easily integrate async/await patterns inside the callback or trigger state updates immediately.

import { useState } from 'react';
import { useActionSheet } from '@expo/react-native-action-sheet';

function DataList() {
  const { showActionSheetWithOptions } = useActionSheet();
  const [loading, setLoading] = useState(false);

  const handleOptionPress = () => {
    const options = ['Refresh Data', 'Clear Cache', 'Cancel'];
    const cancelIndex = 2;

    showActionSheetWithOptions({ options, cancelIndex }, async (selectedIndex) => {
      if (selectedIndex === 0) {
        setLoading(true);
        await fetchData(); // Async operation
        setLoading(false);
      } else if (selectedIndex === 1) {
        await clearCache();
      }
    });
  };

  return <Button title="Options" onPress={handleOptionPress} disabled={loading} />;
}

Using react-native-actionsheet (Legacy): Handling async state in class components or with refs is more verbose and prone to closure issues if not careful.

// Legacy approach with refs
showActionSheetWithOptions = () => {
  this.ActionSheet.show();
};

// Callback defined in render or class method
onSheetComplete = async (selectedIndex) => {
  if (selectedIndex === 0) {
    this.setState({ loading: true });
    await fetchData();
    this.setState({ loading: false });
  }
};

📦 Ecosystem and Future Proofing

When choosing a UI library, you are betting on its future.

  • @expo/react-native-action-sheet is part of the Expo ecosystem. Even if you aren't using Expo Managed Workflow, the package benefits from the massive testing surface of the Expo Go app. If an iOS update breaks Action Sheets, the Expo team fixes it immediately. It also supports TypeScript out of the box with robust definitions.
// TypeScript support is first-class in @expo package
import { ActionSheetOptions } from '@expo/react-native-action-sheet';

const config: ActionSheetOptions = {
  options: ['Yes', 'No'],
  cancelButtonIndex: 1,
  // Full IntelliSense support
};
  • react-native-action-sheet relies on individual maintainers. If they lose interest, the package dies again. TypeScript definitions may be community-maintained and lag behind.

  • react-native-actionsheet has no future. It will not support React Native's New Architecture (Fabric/TurboModules) without a complete rewrite, which will never happen.

📊 Summary Comparison

Feature@expo/react-native-action-sheetreact-native-action-sheetreact-native-actionsheet
Status✅ Active & Maintained⚠️ Community Fork❌ Deprecated / Archived
Expo Support🟢 Full (Config Plugins)🟡 Partial / Manual🔴 None
API Style🪝 Hooks (useActionSheet)🪝 Hooks / Class🏛️ Class / Refs
iOS Modernity🟢 iOS 13+ / iPadOS Ready🟡 Mostly OK🔴 Broken on new iOS
Android Modernity🟢 Material Design Compliant🟡 Acceptable🔴 Outdated Themes
TypeScript🟢 Built-in🟡 Community Types🔴 Poor / None
RecommendationDefault ChoiceFallback OnlyDo Not Use

💡 The Bottom Line

For any professional React Native project starting today, @expo/react-native-action-sheet is the only logical choice. It provides a stable, modern API using React Hooks, ensures your app looks native on the latest iOS and Android versions, and removes the risk of abandoned dependencies.

Even if you are not using the Expo Managed Workflow, the reliability of this package outweighs the perceived benefit of avoiding an "Expo" named package. It is simply a React Native library that happens to be maintained by the Expo team. Avoid react-native-actionsheet entirely, and treat react-native-action-sheet as a backup plan only if you encounter a highly specific, undocumented bug in the Expo fork (which is unlikely).

How to Choose: @expo/react-native-action-sheet vs react-native-action-sheet vs react-native-actionsheet

  • @expo/react-native-action-sheet:

    Choose @expo/react-native-action-sheet if you are using the Expo Managed Workflow or require a library that is actively maintained with support for the latest iOS and Android versions. It is the safest choice for new projects, offering seamless integration with Expo Config Plugins and regular updates to match native OS design changes. This package ensures long-term stability and compatibility with modern React Native releases.

  • react-native-action-sheet:

    Choose react-native-action-sheet only if you are in a bare React Native workflow and have specific legacy constraints that prevent using the Expo-managed package, though this is rarely recommended. Be aware that this package has less consistent maintenance compared to the official Expo fork and may lag behind in supporting new OS features or React Native architecture updates. Use it with caution and verify its current commit history before committing to it.

  • react-native-actionsheet:

    Do NOT choose react-native-actionsheet for any new project. This package is deprecated and no longer maintained, meaning it will not receive fixes for breaking changes in recent React Native versions or modern iOS/Android SDKs. Using it introduces significant technical debt and potential runtime crashes on newer devices. You should immediately migrate to @expo/react-native-action-sheet if you are currently using this legacy package.

README for @expo/react-native-action-sheet

@expo/react-native-action-sheet

npm License: MIT Discord

React Native Action Sheet is a cross-platform React Native component that uses the native UIActionSheet on iOS and a pure JS implementation on Android.

iOSAndroidWeb

Check out the example snack here!

Installation

npm install @expo/react-native-action-sheet

or

yarn add @expo/react-native-action-sheet

A basic ActionSheet Setup

1. Wrap your top-level component with <ActionSheetProvider />

ReactNativeActionSheet uses React context to allow your components to invoke the menu. This means your app needs to be wrapped with the ActionSheetProvider component first.

import { ActionSheetProvider } from '@expo/react-native-action-sheet';

export default function AppContainer() {
  return (
    <ActionSheetProvider>
      <App />
    </ActionSheetProvider>
  );
}

2. Call the showActionSheetWithOptions method with a hook or a higher order component.

// Using the provided hook
import { useActionSheet } from '@expo/react-native-action-sheet';

export default Menu() {
  const { showActionSheetWithOptions } = useActionSheet();

  const onPress = () => {
    const options = ['Delete', 'Save', 'Cancel'];
    const destructiveButtonIndex = 0;
    const cancelButtonIndex = 2;

    showActionSheetWithOptions({
      options,
      cancelButtonIndex,
      destructiveButtonIndex
    }, (selectedIndex: number) => {
      switch (selectedIndex) {
        case 1:
          // Save
          break;

        case destructiveButtonIndex:
          // Delete
          break;

        case cancelButtonIndex:
          // Canceled
      }});
  }

  return (
    <Button title="Menu" onPress={onPress}/>
  )
};

Alternatively, any component can use the higher order component to access the context and pass the showActionSheetWithOptions as a prop.

// Using a Higher Order Component to wrap your component
import { connectActionSheet } from '@expo/react-native-action-sheet';

function Menu({ showActionSheetWithOptions }) {
  /* ... */
}

export default connectActionSheet(Menu);

Menu component can now access the actionSheet prop as showActionSheetWithOptions.

Options

The goal of this library is to mimic the native iOS and Android ActionSheets as closely as possible.

This library can also be used in the browser with Expo for web.

Universal Props

NameTypeDescription
optionsarray of stringsA list of button titles (required)
cancelButtonIndexnumberIndex of cancel button in options
cancelButtonTintColorstringColor used for the change the text color of the cancel button
destructiveButtonIndexnumber or array of numbersIndices of destructive buttons in options
titlestringTitle to show above the action sheet
messagestringMessage to show below the title
tintColorstringColor used for non-destructive button titles
disabledButtonIndicesarray of numbersIndices of disabled buttons in options

iOS Only Props

NameTypeDescription
anchornumberiPad only option that allows for docking the action sheet to a node. See ShowActionSheetButton.tsx for an example on how to implement this.
userInterfaceStylestringThe interface style used for the action sheet, can be set to light or dark, otherwise the default system style will be used.

Custom Action Sheet Only (Android/Web) Props

The below props allow modification of the Android ActionSheet. They have no effect on the look on iOS as the native iOS Action Sheet does not have options for modifying these options.

NameTypeDescription
iconsarray of required images or iconsShow icons to go along with each option. If image source paths are provided via require, images will be rendered for you. Alternatively, you can provide an array of elements such as vector icons, pre-rendered Images, etc.
tintIconsbooleanIcons by default will be tinted to match the text color. When set to false, the icons will be the color of the source image. This is useful if you want to use multicolor icons. If you provide your own nodes/pre-rendered icons rather than required images in the icons array, you will need to tint them appropriately before providing them in the array of icons; tintColor will not be applied to icons unless they are images from a required source.
textStyleTextStyleApply any text style props to the options. If the tintColor option is provided, it takes precedence over a color text style prop.
titleTextStyleTextStyleApply any text style props to the title if present.
messageTextStyleTextStyleApply any text style props to the message if present.
autoFocusbooleanIf true, this will give the first option screen reader focus automatically when the action sheet becomes visible. On iOS, this is the default behavior of the native action sheet.
showSeparatorsbooleanShow separators between items. On iOS, separators always show so this prop has no effect.
containerStyleViewStyleApply any view style props to the container rather than use the default look (e.g. dark mode).
separatorStyleViewStyleModify the look of the separators rather than use the default look.
useModalbooleanDefaults to false (true if autoFocus is also true) Wraps the ActionSheet with a Modal, in order to show in front of other Modals that were already opened (issue reference).
destructiveColorstringModify color for text of destructive option. Defaults to #d32f2f.

ActionSheetProvider Props

The following props can be set directly on the ActionSheetProvider

NameTypeDescription
useCustomActionSheetbooleaniOS only prop that uses the custom pure JS action sheet (Android/Web version) instead of the native ActionSheetIOS component. Defaults to false.
useNativeDriverbooleanWindows only option that provides the option to disable the native animation driver for React Native Windows projects targeting Windows 10 Version-1809 ; Build-10.0.17763.0 and earlier. useNativeDriver is supported in Version-1903 and later so if your project is targeting that, you don't need to set this prop.
// example of using useCustomActionSheet on iOS
export default function AppContainer() {
  return (
    <ActionSheetProvider useCustomActionSheet={true}>
      <App />
    </ActionSheetProvider>
  );
}

Callback

The second parameter of the showActionSheetWithOptions function is a callback for when a button is selected. The callback takes a single argument which will be the zero-based index of the pressed option. You can check the value against your cancelButtonIndex to determine if the action was cancelled or not.

function onButtonPress(selectedIndex: number) {
  // handle it!
}

Try it out

Try it in Expo Snack: https://snack.expo.dev/@expo-action-sheet/example.

Example

See the example app.

Usage

$ cd example
$ yarn

// build simulator
$ yarn ios
$ yarn android

// web
$ yarn web

Development

Setup

$ git clone git@github.com:expo/react-native-action-sheet.git
$ cd react-native-action-sheet
$ yarn

Build

We use bob.

$ yarn build

Lint & Format

// tsc
$ yarn type-check

// ESLint + Prettier
$ yarn lint