2026-08-25 06:04:03 +00:00
// Module ID: 4776
// Function ID: 4777
2026-08-24 06:08:38 +00:00
// Name: ScreenStack
2026-08-25 06:04:03 +00:00
// Dependencies: [109, 19, 21, 4761, 4777, 4778, 4765]
2026-08-24 06:08:38 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 4776 (ScreenStack)
2026-08-24 06:08:38 +00:00
import closure _4 from "_objectWithoutProperties" /* 109 */ ;
import closure _5 from "noop" /* 19 */ ;
import { jsx } from "jsxProd" /* 21 */ ;
const require = arg1 ;
let closure _3 = [ "goBackGesture" , "screensRefs" , "currentScreenId" , "transitionAnimation" , "screenEdgeGesture" , "onFinishTransitioning" , "children" ] ;
export default function ScreenStack ( arg0 ) {
( { goBackGesture , screensRefs , currentScreenId , screenEdgeGesture } = arg0 ) ;
( { transitionAnimation , onFinishTransitioning , children } = arg0 ) ;
let obj = React ;
let current ;
if ( screensRefs != null ) {
current = screensRefs . current ;
}
if ( current == null ) {
current = { } ;
}
const ref = React . useRef ( current ) ;
const ref1 = obj . useRef ( null ) ;
2026-08-25 06:04:03 +00:00
const context = obj . useContext ( ref1 ( 4777 ) . GHContext ) ;
2026-08-24 06:08:38 +00:00
obj = {
stackUseEffectCallback ( ref1 ) {
}
} ;
const ref2 = obj . useRef ( obj ) ;
const effect = obj . useEffect ( ( ) => {
const current = ref2 . current ;
const result = current . stackUseEffectCallback ( ref1 ) ;
} ) ;
2026-08-25 06:04:03 +00:00
ref2 ( 4761 ) ( "GHWrapper" !== context . name && undefined !== goBackGesture , "Cannot detect GestureDetectorProvider in a screen that uses `goBackGesture`. Make sure your navigator is wrapped in GestureDetectorProvider." ) ;
ref2 ( 4761 ) ( undefined !== goBackGesture && null === ref && undefined === currentScreenId , "Custom Screen Transition require screensRefs and currentScreenId to be provided." ) ;
2026-08-24 06:08:38 +00:00
obj = { value : ref , children : null } ;
obj1 = { gestureDetectorBridge : ref2 , goBackGesture , transitionAnimation , screenEdgeGesture : null , screensRefs : null , currentScreenId : null , children : null } ;
if ( screenEdgeGesture == null ) {
screenEdgeGesture = false ;
}
obj1 [ 3 ] = screenEdgeGesture ;
obj1 [ 4 ] = ref ;
obj1 [ 5 ] = currentScreenId ;
const obj2 = { } ;
const tmp = callback ( arg0 , closure _3 ) ;
const tmp12 = undefined !== goBackGesture && null === ref && undefined === currentScreenId ;
const tmp4 = ref1 ;
const tmp9 = "GHWrapper" !== context . name && undefined !== goBackGesture ;
const merged = Object . assign ( tmp ) ;
2026-08-25 06:04:03 +00:00
obj2 . iosPreventReattachmentOfDismissedScreens = ref2 ( 4765 ) . experiment . iosPreventReattachmentOfDismissedScreens ;
2026-08-24 06:08:38 +00:00
obj2 . onFinishTransitioning = onFinishTransitioning ;
obj2 . ref = ref1 ;
obj2 . children = children ;
2026-08-25 06:04:03 +00:00
obj1 [ 6 ] = jsx ( ref2 ( 4778 ) , { } ) ;
2026-08-24 06:08:38 +00:00
obj [ 1 ] = < context gestureDetectorBridge = { ref2 } goBackGesture = { goBackGesture } transitionAnimation = { transitionAnimation } screenEdgeGesture = { null } screensRefs = { null } currentScreenId = { null } > { null } < / c o n t e x t > ;
2026-08-25 06:04:03 +00:00
return jsx ( tmp4 ( 4777 ) . RNSScreensRefContext . Provider , { value : ref , children : null } ) ;
2026-08-24 06:08:38 +00:00
} ;