v0.8.0
What's New
- Complete rewrite of the library
- Background interaction support
<ActionSheet backgroundInteractionEnabled={true} />
- Improved
ScrollView
&FlatList
handling. - Official support for react-native-web & expo projects
- You can provide an array of
snapPoints
as a prop and action sheet will move between those points - New overdraw effect
- More granular control over action sheet behaviour
- Improved
SheetManager
api - 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