Sign in to Reactiive

Use your Google or Apple account.
Signing in subscribes you to the newsletter: new content and the occasional promotion. Unsubscribe at any time.
Skip to content

Stacked Action Tray with Reanimated and Gesture Handler

Wednesday, March 13, 2024
enzomanuelmangano
demos
stacked-bottom-sheet
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A bottom sheet system with stacked sheets management.

What's This About?

This component creates a sophisticated bottom sheet system that can manage multiple stacked sheets. It features a provider-based architecture for sheet management, safe area handling, and gesture controls. The implementation includes smooth animations and transitions between sheets, making it perfect for complex modal interfaces requiring multiple layers of interaction.

Technical Implementation

The component uses:
Sheet management
Gesture handling
Safe area awareness
Provider pattern
Stack navigation

Usage

// Basic usage with provider <StackedBottomSheet /> // Full implementation <SafeAreaProvider> <GestureHandlerRootView style={{ flex: 1 }}> <StackedSheetProvider> <App /> </StackedSheetProvider> </GestureHandlerRootView> </SafeAreaProvider> // Trigger sheet const { onPress } = useDemoStackedSheet(); // Action button <PressableScale style={styles.button} onPress={onPress} > <Text style={styles.textButton}> Show Action Tray </Text> </PressableScale> // Styling const styles = StyleSheet.create({ button: { paddingVertical: 18, paddingHorizontal: 25, backgroundColor: '#111', borderRadius: 25, borderWidth: 1 }, textButton: { color: 'white', letterSpacing: 1.2, textTransform: 'uppercase', fontWeight: '700' } });

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Stacked Bottom Sheet

Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback