2026-07-25 08:10:48 +00:00
// Module ID: 4483
// Function ID: 39609
2026-07-20 16:05:17 +00:00
// Name: Animated
2026-07-25 08:10:48 +00:00
// Dependencies: [29, 31, 27, 33, 4484, 4485, 4486, 4482, 4487, 4488, 4489, 4491, 4492, 4493]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4483 (Animated)
2026-07-23 10:11:24 +00:00
import _objectWithoutProperties from "_objectWithoutProperties" ;
import importDefaultResult from "result" ;
import get _ActivityIndicator from "get ActivityIndicator" ;
import { jsx } from "jsxProd" ;
import _ _INTERNAL _VIEW _CONFIG from "__INTERNAL_VIEW_CONFIG" ;
import animatedComponent from "__INTERNAL_VIEW_CONFIG" ;
const require = arg1 ;
let closure _3 = [ "enabled" , "freezeOnBlur" , "shouldFreeze" ] ;
let closure _4 = [ "active" , "activityState" , "children" , "isNativeStack" , "fullScreenSwipeEnabled" , "gestureResponseDistance" , "scrollEdgeEffects" , "onGestureCancel" , "style" ] ;
let closure _5 = [ "active" , "activityState" , "style" , "onComponentRef" ] ;
const Animated = get _ActivityIndicator . Animated ;
2026-07-20 16:05:17 +00:00
const forwardRefResult = importDefaultResult . forwardRef ( function InnerScreen ( activityState ) {
let active ;
let active2 ;
let activityState2 ;
let children ;
let fullScreenSwipeEnabled ;
let gestureResponseDistance ;
let isNativeStack ;
let onComponentRef ;
let onGestureCancel ;
let scrollEdgeEffects ;
let style ;
2026-07-23 10:11:24 +00:00
const _require = activityState ;
2026-07-20 16:05:17 +00:00
const importDefault = importDefaultResult . useRef ( null ) ;
const imperativeHandle = importDefaultResult . useImperativeHandle ( arg1 , ( ) => ref . current , [ ] ) ;
2026-07-23 10:11:24 +00:00
let obj = _require ( setRef [ 6 ] ) ;
2026-07-20 16:05:17 +00:00
const previous = obj . usePrevious ( activityState . activityState ) ;
2026-07-23 10:11:24 +00:00
setRef = function setRef ( current ) {
2026-07-20 16:05:17 +00:00
closure _1 . current = current ;
2026-07-23 10:11:24 +00:00
if ( null != activityState . onComponentRef ) {
activityState . onComponentRef ( current ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
} ;
2026-07-20 16:05:17 +00:00
let value = new Animated . Value ( 0 ) ;
const current = importDefaultResult . useRef ( value ) . current ;
value = new Animated . Value ( 0 ) ;
const current2 = importDefaultResult . useRef ( value ) . current ;
const value1 = new Animated . Value ( 0 ) ;
const current3 = importDefaultResult . useRef ( value1 ) . current ;
let enabled = activityState . enabled ;
if ( undefined === enabled ) {
2026-07-23 10:11:24 +00:00
let obj1 = _require ( setRef [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
enabled = obj1 . screensEnabled ( ) ;
}
let freezeOnBlur = activityState . freezeOnBlur ;
if ( undefined === freezeOnBlur ) {
2026-07-23 10:11:24 +00:00
let obj2 = _require ( setRef [ 7 ] ) ;
2026-07-20 16:05:17 +00:00
freezeOnBlur = obj2 . freezeEnabled ( ) ;
}
let shouldFreeze = activityState . shouldFreeze ;
const tmp10 = callback ( activityState , closure _3 ) ;
let sheetAllowedDetents = tmp10 . sheetAllowedDetents ;
if ( undefined === sheetAllowedDetents ) {
2026-07-23 10:11:24 +00:00
sheetAllowedDetents = [ 1 ] ;
2026-07-20 16:05:17 +00:00
}
let SHEET _DIMMED _ALWAYS = tmp10 . sheetLargestUndimmedDetentIndex ;
if ( undefined === SHEET _DIMMED _ALWAYS ) {
2026-07-23 10:11:24 +00:00
SHEET _DIMMED _ALWAYS = _require ( setRef [ 8 ] ) . SHEET _DIMMED _ALWAYS ;
2026-07-20 16:05:17 +00:00
}
const sheetGrabberVisible = tmp10 . sheetGrabberVisible ;
const sheetCornerRadius = tmp10 . sheetCornerRadius ;
let num4 = - 1 ;
let num5 = - 1 ;
if ( undefined !== sheetCornerRadius ) {
num5 = sheetCornerRadius ;
}
const sheetExpandsWhenScrolledToEdge = tmp10 . sheetExpandsWhenScrolledToEdge ;
const sheetElevation = tmp10 . sheetElevation ;
let num6 = 24 ;
if ( undefined !== sheetElevation ) {
num6 = sheetElevation ;
}
let sheetInitialDetentIndex = tmp10 . sheetInitialDetentIndex ;
let num7 = 0 ;
if ( undefined !== sheetInitialDetentIndex ) {
num7 = sheetInitialDetentIndex ;
}
const sheetShouldOverflowTopInset = tmp10 . sheetShouldOverflowTopInset ;
const sheetDefaultResizeAnimationEnabled = tmp10 . sheetDefaultResizeAnimationEnabled ;
if ( enabled ) {
2026-07-23 10:11:24 +00:00
if ( _require ( setRef [ 7 ] ) . isNativePlatformSupported ) {
let obj5 = _require ( setRef [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
const sheetAllowedDetents1 = obj5 . resolveSheetAllowedDetents ( sheetAllowedDetents ) ;
2026-07-23 10:11:24 +00:00
let obj6 = _require ( setRef [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
const sheetLargestUndimmedDetent = obj6 . resolveSheetLargestUndimmedDetent ( SHEET _DIMMED _ALWAYS , sheetAllowedDetents1 . length - 1 ) ;
2026-07-23 10:11:24 +00:00
let obj7 = _require ( setRef [ 8 ] ) ;
2026-07-20 16:05:17 +00:00
( { active : active2 , activityState : activityState2 , children , isNativeStack , gestureResponseDistance , scrollEdgeEffects , onGestureCancel } = tmp10 ) ;
sheetInitialDetentIndex = obj7 . resolveSheetInitialDetentIndex ( num7 , sheetAllowedDetents1 . length - 1 ) ;
( { fullScreenSwipeEnabled , style } = tmp10 ) ;
let tmp35 = undefined !== active2 ;
if ( tmp35 ) {
tmp35 = undefined === activityState2 ;
}
if ( tmp35 ) {
const _console = console ;
console . warn ( "It appears that you are using old version of react-navigation library. Please update @react-navigation/bottom-tabs, @react-navigation/stack and @react-navigation/drawer to version 5.10.0 or above to take full advantage of new functionality added to react-native-screens" ) ;
let num12 = 0 ;
if ( 0 !== active2 ) {
num12 = 2 ;
}
activityState2 = num12 ;
}
2026-07-23 10:11:24 +00:00
importDefault ( setRef [ 9 ] ) ( false , "[RNScreens] Using featureFlags `ios26AllowInteractionsDuringTransition` with `iosPreventReattachmentOfDismissedScreens` disabled is discouraged and will result in visual bugs on screen transitions. See flags description for details." ) ;
2026-07-20 16:05:17 +00:00
if ( isNativeStack ) {
if ( undefined !== previous ) {
if ( undefined !== activityState2 ) {
if ( previous > activityState2 ) {
const _Error = Error ;
const error = new Error ( "[RNScreens] activityState cannot be decreased in NativeStack" ) ;
throw error ;
}
}
}
}
if ( freezeOnBlur ) {
if ( undefined === shouldFreeze ) {
shouldFreeze = 0 === activityState2 ;
}
freezeOnBlur = shouldFreeze ;
}
obj = { freeze : freezeOnBlur } ;
obj = { onAppear : tmp18 , onDisappear : tmp19 , onWillAppear : tmp20 , onWillDisappear : tmp21 } ;
2026-07-23 10:11:24 +00:00
const tmp31 = _ _INTERNAL _VIEW _CONFIG ;
2026-07-20 16:05:17 +00:00
const tmp34 = callback ( tmp10 , closure _4 ) ;
if ( null == onGestureCancel ) {
onGestureCancel = ( ) => {
} ;
}
obj . onGestureCancel = onGestureCancel ;
const items = [ style , ] ;
obj1 = { zIndex : undefined } ;
items [ 1 ] = obj1 ;
obj . style = items ;
obj . activityState = activityState2 ;
obj . screenId = tmp17 ;
obj . sheetAllowedDetents = sheetAllowedDetents1 ;
obj . sheetLargestUndimmedDetent = sheetLargestUndimmedDetent ;
obj . sheetElevation = num6 ;
obj . sheetShouldOverflowTopInset = tmp15 ;
obj . sheetDefaultResizeAnimationEnabled = tmp16 ;
obj . sheetGrabberVisible = tmp13 ;
obj . sheetCornerRadius = num5 ;
obj . sheetExpandsWhenScrolledToEdge = tmp14 ;
obj . sheetInitialDetent = sheetInitialDetentIndex ;
2026-07-23 10:11:24 +00:00
const tmp44 = importDefault ( setRef [ 10 ] ) ;
obj . fullScreenSwipeEnabled = _require ( setRef [ 11 ] ) . parseBooleanToOptionalBooleanNativeProp ( fullScreenSwipeEnabled ) ;
2026-07-20 16:05:17 +00:00
obj2 = { } ;
let start ;
if ( null != gestureResponseDistance ) {
start = gestureResponseDistance . start ;
}
let tmp49 = num4 ;
if ( null != start ) {
tmp49 = start ;
}
obj2 . start = tmp49 ;
let end ;
if ( null != gestureResponseDistance ) {
end = gestureResponseDistance . end ;
}
let tmp51 = num4 ;
if ( null != end ) {
tmp51 = end ;
}
obj2 . end = tmp51 ;
let top ;
if ( null != gestureResponseDistance ) {
top = gestureResponseDistance . top ;
}
let tmp53 = num4 ;
if ( null != top ) {
tmp53 = top ;
}
obj2 . top = tmp53 ;
let bottom ;
if ( null != gestureResponseDistance ) {
bottom = gestureResponseDistance . bottom ;
}
if ( null != bottom ) {
num4 = bottom ;
}
obj2 . bottom = num4 ;
obj . gestureResponseDistance = obj2 ;
obj . ref = function handleRef ( viewConfig ) {
if ( null != viewConfig ) {
viewConfig = viewConfig . viewConfig ;
if ( null != viewConfig ) {
let validAttributes = viewConfig . validAttributes ;
if ( null != validAttributes ) {
if ( validAttributes . style ) {
const _Object3 = Object ;
let obj = { display : null } ;
viewConfig . viewConfig . validAttributes . style = Object . assign ( { } , viewConfig . viewConfig . validAttributes . style , obj ) ;
}
setRef ( viewConfig ) ;
}
}
}
if ( null != viewConfig ) {
const _viewConfig = viewConfig . _viewConfig ;
if ( null != _viewConfig ) {
validAttributes = _viewConfig . validAttributes ;
if ( null != validAttributes ) {
if ( validAttributes . style ) {
const _Object2 = Object ;
obj = { display : null } ;
viewConfig . _viewConfig . validAttributes . style = Object . assign ( { } , viewConfig . _viewConfig . validAttributes . style , obj ) ;
}
}
}
}
let style = null != viewConfig ;
let tmp ;
if ( style ) {
const _ _viewConfig = viewConfig . _ _viewConfig ;
style = null != _ _viewConfig ;
tmp = _ _viewConfig ;
}
let tmp2 = tmp ;
if ( style ) {
validAttributes = tmp . validAttributes ;
style = null != validAttributes ;
tmp2 = validAttributes ;
}
if ( style ) {
style = tmp2 . style ;
}
if ( style ) {
const _Object = Object ;
obj = { display : null } ;
viewConfig . _ _viewConfig . validAttributes . style = Object . assign ( { } , viewConfig . _ _viewConfig . validAttributes . style , obj ) ;
}
} ;
let eventResult ;
if ( isNativeStack ) {
const obj3 = { } ;
const obj4 = { progress : current2 , closing : current , goingForward : current3 } ;
obj3 . nativeEvent = obj4 ;
const items1 = [ obj3 ] ;
obj5 = { useNativeDriver : true } ;
eventResult = Animated . event ( items1 , obj5 ) ;
}
obj . onTransitionProgress = eventResult ;
let bottom1 ;
if ( null != scrollEdgeEffects ) {
bottom1 = scrollEdgeEffects . bottom ;
}
obj . bottomScrollEdgeEffect = bottom1 ;
let left ;
if ( null != scrollEdgeEffects ) {
left = scrollEdgeEffects . left ;
}
obj . leftScrollEdgeEffect = left ;
let right ;
if ( null != scrollEdgeEffects ) {
right = scrollEdgeEffects . right ;
}
obj . rightScrollEdgeEffect = right ;
let top1 ;
if ( null != scrollEdgeEffects ) {
top1 = scrollEdgeEffects . top ;
}
obj . topScrollEdgeEffect = top1 ;
2026-07-23 10:11:24 +00:00
obj . synchronousShadowStateUpdatesEnabled = importDefault ( setRef [ 12 ] ) . experiment . synchronousScreenUpdatesEnabled ;
obj . androidResetScreenShadowStateOnOrientationChangeEnabled = importDefault ( setRef [ 12 ] ) . experiment . androidResetScreenShadowStateOnOrientationChangeEnabled ;
obj . ios26AllowInteractionsDuringTransition = importDefault ( setRef [ 12 ] ) . experiment . ios26AllowInteractionsDuringTransition ;
2026-07-20 16:05:17 +00:00
let tmp63 = children ;
if ( isNativeStack ) {
obj6 = { } ;
obj7 = { progress : current2 , closing : current , goingForward : current3 } ;
obj6 . value = obj7 ;
obj6 . children = children ;
2026-07-23 10:11:24 +00:00
tmp63 = jsx ( importDefault ( setRef [ 13 ] ) . Provider , { } ) ;
2026-07-20 16:05:17 +00:00
}
obj . children = tmp63 ;
obj . children = < tmp31 { ... Object . assign ( { } , tmp34 , obj ) } / > ;
2026-07-23 10:11:24 +00:00
return < tmp44 onAppear = { tmp18 } onDisappear = { tmp19 } onWillAppear = { tmp20 } onWillDisappear = { tmp21 } / > ;
2026-07-20 16:05:17 +00:00
}
}
( { active , activityState , onComponentRef } = tmp10 ) ;
let tmp25 = undefined !== active ;
if ( tmp25 ) {
tmp25 = undefined === activityState ;
}
if ( tmp25 ) {
let num9 = 0 ;
if ( 0 !== active ) {
num9 = 2 ;
}
activityState = num9 ;
}
const obj8 = { } ;
const items2 = [ tmp10 . style , ] ;
const obj9 = { } ;
let str = "none" ;
if ( 0 !== activityState ) {
str = "flex" ;
}
obj9 . display = str ;
items2 [ 1 ] = obj9 ;
obj8 . style = items2 ;
obj8 . ref = setRef ;
return < Animated . View { ... Object . assign ( obj8 , callback ( tmp10 , closure _5 ) ) } / > ;
} ) ;
const context = importDefaultResult . createContext ( forwardRefResult ) ;
2026-07-23 10:11:24 +00:00
const forwardRefResult1 = importDefaultResult . forwardRef ( ( arg0 , ref ) => jsx ( importDefaultResult . useContext ( context ) || closure _11 , Object . assign ( { } , arg0 , { ref } ) ) ) ;
2026-07-20 16:05:17 +00:00
forwardRefResult1 . displayName = "Screen" ;
export default forwardRefResult1 ;
export const InnerScreen = forwardRefResult ;
export const ScreenContext = context ;