ScreenTransitionConfig object that can be spread into screen options.
Usage
Available Presets
Basic Transitions
These presets provide simple, gesture-enabled transitions without shared elements.SlideFromTop
Slides in from top with vertical swipe-to-dismiss
SlideFromBottom
Slides in from bottom (modal-style) with vertical swipe-to-dismiss
ZoomIn
Scales in with fade effect
DraggableCard
Multi-directional drag with scaling effect
ElasticCard
Elastic drag with backdrop overlay
Shared Element Transitions
These presets use the Bounds API for seamless shared element animations between screens.Shared element presets require
@react-native-masked-view/masked-view. See Masked View Setup for installation instructions.SharedIGImage
Instagram-style shared image transition with backdrop
SharedAppleMusic
Apple Music-style shared element with platform shadows
SharedXImage
X (Twitter)-style image transition with dynamic direction
Customizing Presets
All presets accept a config object to override default behaviors:Return Type
All preset functions return aScreenTransitionConfig object with these properties:
Enables custom transitions (required for Native Stack)
Enables swipe-to-dismiss gesture
Direction(s) for dismiss gesture
Function that interpolates animation values to styles
Spring configuration for open and close animations
