Skip to content

v0.8.0

Compare
Choose a tag to compare
@ammarahm-ed ammarahm-ed released this 21 Aug 12:21
· 119 commits to master since this release

What's New

  1. Complete rewrite of the library
  2. Background interaction support
<ActionSheet backgroundInteractionEnabled={true} />
  1. Improved ScrollView & FlatList handling.
  2. Official support for react-native-web & expo projects
  3. You can provide an array of snapPoints as a prop and action sheet will move between those points
  4. New overdraw effect
  5. More granular control over action sheet behaviour
  6. Improved SheetManager api
  7. You can now receive result from action sheet and send data to it asynchronously:
async function openExternalLink(link: string) {
  const canOpen = await SheetManager.show("confirm-sheet", {
    payload: {
      message: `Do you want to open ${link} in your phone browser?`,
    },
  });
  if (canOpen) {
    Linking.openUrl(link);
  }
}

New Documentation Website

Detailed guides & API reference of each features of the action sheet. Hosted with @vercel & built with Nextra by @shuding.

Breaking changes

v0.8.0 introduces some breaking changes. I tried to minimize them as much as possible but since this is a complete rewrite some of the features of this library have changed. Read the migration guide