Action Sheet

What’s the difference between ActionSheet plugin under ionic-native and Action Sheets component?

  • Action Sheets under Component section:

import { ActionSheetController } from ‘ionic-angular’

  • Action Sheet plug-in under ionic-native:

import { ActionSheet, ActionSheetOptions } from ‘@ionic-native/action-sheet’;

The first one is Ionics Framework implementation of an action sheet, so it’s JS/HTML based. The second one is the native action-sheet, which is the native version of the action sheet that’s being used in native apps.

The first one gives you much more control over looks, feel and whatever you want to feed it, the second one is less open for alterations and is the action sheet build in to your systems OS.

1 Like