first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import * as React from 'react';
// @ts-ignore file to be used only if `react-native-reanimated` available in the project
export default /*#__PURE__*/React.createContext(undefined);
//# sourceMappingURL=ReanimatedHeaderHeightContext.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["React","createContext","undefined"],"sourceRoot":"../../../src","sources":["reanimated/ReanimatedHeaderHeightContext.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B;;AAGA,4BAAeA,KAAK,CAACC,aAAa,CAChCC,SACF,CAAC","ignoreList":[]}

View File

@@ -0,0 +1,117 @@
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import React from 'react';
import { Platform } from 'react-native';
import { InnerScreen } from '../components/Screen';
// @ts-ignore file to be used only if `react-native-reanimated` available in the project
import Animated, { useEvent, useSharedValue } from 'react-native-reanimated';
import ReanimatedTransitionProgressContext from './ReanimatedTransitionProgressContext';
import { useSafeAreaFrame, useSafeAreaInsets } from 'react-native-safe-area-context';
import ReanimatedHeaderHeightContext from './ReanimatedHeaderHeightContext';
const AnimatedScreen = Animated.createAnimatedComponent(InnerScreen);
// We use prop added to global by reanimated since it seems safer than the one from RN. See:
// https://github.com/software-mansion/react-native-reanimated/blob/3fe8b35b05e82b2f2aefda1fb97799cf81e4b7bb/src/reanimated2/UpdateProps.ts#L46
// @ts-expect-error nativeFabricUIManager is not yet included in the RN types
const ENABLE_FABRIC = !!global?.RN$Bridgeless;
const ReanimatedNativeStackScreen = /*#__PURE__*/React.forwardRef((props, ref) => {
const {
children,
...rest
} = props;
const {
stackPresentation = 'push',
hasLargeHeader
} = rest;
const dimensions = useSafeAreaFrame();
const topInset = useSafeAreaInsets().top;
const isStatusBarTranslucent = rest.statusBarTranslucent ?? false;
const statusBarHeight = getStatusBarHeight(topInset, dimensions, isStatusBarTranslucent);
// Default header height, normally used in `useHeaderHeight` hook.
// Here, it is used for returning a default value for shared value.
const defaultHeaderHeight = getDefaultHeaderHeight(dimensions, statusBarHeight, stackPresentation, hasLargeHeader);
const cachedHeaderHeight = React.useRef(defaultHeaderHeight);
const headerHeight = useSharedValue(defaultHeaderHeight);
const progress = useSharedValue(0);
const closing = useSharedValue(0);
const goingForward = useSharedValue(0);
return /*#__PURE__*/React.createElement(AnimatedScreen
// @ts-ignore some problems with ref and onTransitionProgressReanimated being "fake" prop for parsing of `useEvent` return value
, _extends({
ref: ref,
onTransitionProgressReanimated: useEvent(event => {
'worklet';
progress.value = event.progress;
closing.value = event.closing;
goingForward.value = event.goingForward;
}, [
// This should not be necessary, but is not properly managed by `react-native-reanimated`
// @ts-ignore wrong type
Platform.OS === 'android' ? 'onTransitionProgress' :
// for some reason there is a difference in required event name between architectures
ENABLE_FABRIC ? 'onTransitionProgress' : 'topTransitionProgress']),
onHeaderHeightChangeReanimated: useEvent(event => {
'worklet';
if (event.headerHeight !== cachedHeaderHeight.current) {
headerHeight.value = event.headerHeight;
cachedHeaderHeight.current = event.headerHeight;
}
}, [
// @ts-ignore wrong type
Platform.OS === 'android' ? 'onHeaderHeightChange' : ENABLE_FABRIC ? 'onHeaderHeightChange' : 'topHeaderHeightChange'])
}, rest), /*#__PURE__*/React.createElement(ReanimatedHeaderHeightContext.Provider, {
value: headerHeight
}, /*#__PURE__*/React.createElement(ReanimatedTransitionProgressContext.Provider, {
value: {
progress,
closing,
goingForward
}
}, children)));
});
const formSheetModalHeight = 56;
function getDefaultHeaderHeight(layout, statusBarHeight, stackPresentation, isLargeHeader = false) {
// default header heights
let headerHeight = Platform.OS === 'android' ? 56 : 64;
if (Platform.OS === 'ios') {
const isLandscape = layout.width > layout.height;
const isFormSheetModal = stackPresentation === 'modal' || stackPresentation === 'formSheet' || stackPresentation === 'pageSheet';
if (isFormSheetModal && !isLandscape) {
// `modal`, `formSheet` and `pageSheet` presentations do not take whole screen, so should not take the inset.
statusBarHeight = 0;
}
if (Platform.isPad || Platform.isTV) {
headerHeight = isFormSheetModal ? formSheetModalHeight : 50;
} else {
if (isLandscape) {
headerHeight = 32;
} else {
if (isFormSheetModal) {
headerHeight = formSheetModalHeight;
} else {
headerHeight = isLargeHeader ? 96 : 44;
}
}
}
}
return headerHeight + statusBarHeight;
}
function getStatusBarHeight(topInset, dimensions, isStatusBarTranslucent) {
if (Platform.OS === 'ios') {
// It looks like some iOS devices don't have strictly set status bar height to 44.
// Thus, if the top inset is higher than 50, then the device should have a dynamic island.
// On models with Dynamic Island the status bar height is smaller than the safe area top inset by 5 pixels.
// See https://developer.apple.com/forums/thread/662466 for more details about status bar height.
const hasDynamicIsland = topInset > 50;
return hasDynamicIsland ? topInset - 5 : topInset;
} else if (Platform.OS === 'android') {
// On Android we should also rely on frame's y-axis position, as topInset is 0 on visible status bar.
return isStatusBarTranslucent ? topInset : dimensions.y;
}
return topInset;
}
ReanimatedNativeStackScreen.displayName = 'ReanimatedNativeStackScreen';
export default ReanimatedNativeStackScreen;
//# sourceMappingURL=ReanimatedNativeStackScreen.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["React","Platform","InnerScreen","Animated","useEvent","useSharedValue","ReanimatedTransitionProgressContext","useSafeAreaFrame","useSafeAreaInsets","ReanimatedHeaderHeightContext","AnimatedScreen","createAnimatedComponent","ENABLE_FABRIC","global","RN$Bridgeless","ReanimatedNativeStackScreen","forwardRef","props","ref","children","rest","stackPresentation","hasLargeHeader","dimensions","topInset","top","isStatusBarTranslucent","statusBarTranslucent","statusBarHeight","getStatusBarHeight","defaultHeaderHeight","getDefaultHeaderHeight","cachedHeaderHeight","useRef","headerHeight","progress","closing","goingForward","createElement","_extends","onTransitionProgressReanimated","event","value","OS","onHeaderHeightChangeReanimated","current","Provider","formSheetModalHeight","layout","isLargeHeader","isLandscape","width","height","isFormSheetModal","isPad","isTV","hasDynamicIsland","y","displayName"],"sourceRoot":"../../../src","sources":["reanimated/ReanimatedNativeStackScreen.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,WAAW,QAAQ,sBAAsB;AAQlD;AACA,OAAOC,QAAQ,IAAIC,QAAQ,EAAEC,cAAc,QAAQ,yBAAyB;AAC5E,OAAOC,mCAAmC,MAAM,uCAAuC;AACvF,SAEEC,gBAAgB,EAChBC,iBAAiB,QACZ,gCAAgC;AACvC,OAAOC,6BAA6B,MAAM,iCAAiC;AAE3E,MAAMC,cAAc,GAAGP,QAAQ,CAACQ,uBAAuB,CACrDT,WACF,CAAC;;AAED;AACA;AACA;AACA,MAAMU,aAAa,GAAG,CAAC,CAACC,MAAM,EAAEC,aAAa;AAE7C,MAAMC,2BAA2B,gBAAGf,KAAK,CAACgB,UAAU,CAGlD,CAACC,KAAK,EAAEC,GAAG,KAAK;EAChB,MAAM;IAAEC,QAAQ;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAK;EACnC,MAAM;IAAEI,iBAAiB,GAAG,MAAM;IAAEC;EAAe,CAAC,GAAGF,IAAI;EAE3D,MAAMG,UAAU,GAAGhB,gBAAgB,CAAC,CAAC;EACrC,MAAMiB,QAAQ,GAAGhB,iBAAiB,CAAC,CAAC,CAACiB,GAAG;EACxC,MAAMC,sBAAsB,GAAGN,IAAI,CAACO,oBAAoB,IAAI,KAAK;EACjE,MAAMC,eAAe,GAAGC,kBAAkB,CACxCL,QAAQ,EACRD,UAAU,EACVG,sBACF,CAAC;;EAED;EACA;EACA,MAAMI,mBAAmB,GAAGC,sBAAsB,CAChDR,UAAU,EACVK,eAAe,EACfP,iBAAiB,EACjBC,cACF,CAAC;EAED,MAAMU,kBAAkB,GAAGhC,KAAK,CAACiC,MAAM,CAACH,mBAAmB,CAAC;EAC5D,MAAMI,YAAY,GAAG7B,cAAc,CAACyB,m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AAGA,QAAQ;EACnD,CAAC,MAAM,IAAIvB,QAAQ,CAAC0C,EAAE,KAAK,SAAS,EAAE;IACpC;IACA,OAAOjB,sBAAsB,GAAGF,QAAQ,GAAGD,UAAU,CAACkC,CAAC;EACzD;EAEA,OAAOjC,QAAQ;AACjB;AAEAT,2BAA2B,CAAC2C,WAAW,GAAG,6BAA6B;AAEvE,eAAe3C,2BAA2B","ignoreList":[]}

View File

@@ -0,0 +1,16 @@
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import React from 'react';
import { InnerScreen } from '../components/Screen';
// @ts-ignore file to be used only if `react-native-reanimated` available in the project
import Animated from 'react-native-reanimated';
const AnimatedScreen = Animated.createAnimatedComponent(InnerScreen);
const ReanimatedScreen = /*#__PURE__*/React.forwardRef((props, ref) => {
return /*#__PURE__*/React.createElement(AnimatedScreen
// @ts-ignore some problems with ref and onTransitionProgressReanimated being "fake" prop for parsing of `useEvent` return value
, _extends({
ref: ref
}, props));
});
ReanimatedScreen.displayName = 'ReanimatedScreen';
export default ReanimatedScreen;
//# sourceMappingURL=ReanimatedScreen.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["React","InnerScreen","Animated","AnimatedScreen","createAnimatedComponent","ReanimatedScreen","forwardRef","props","ref","createElement","_extends","displayName"],"sourceRoot":"../../../src","sources":["reanimated/ReanimatedScreen.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,sBAAsB;AAGlD;AACA,OAAOC,QAAQ,MAAM,yBAAyB;AAE9C,MAAMC,cAAc,GAAGD,QAAQ,CAACE,uBAAuB,CACrDH,WACF,CAAC;AAED,MAAMI,gBAAgB,gBAAGL,KAAK,CAACM,UAAU,CACvC,CAACC,KAAK,EAAEC,GAAG,KAAK;EACd,oBACER,KAAA,CAAAS,aAAA,CAACN;EACC;EAAA,EAAAO,QAAA;IACAF,GAAG,EAAEA;EAAI,GACLD,KAAK,CACV,CAAC;AAEN,CACF,CAAC;AAEDF,gBAAgB,CAACM,WAAW,GAAG,kBAAkB;AAEjD,eAAeN,gBAAgB","ignoreList":[]}

View File

@@ -0,0 +1,32 @@
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import React from 'react';
import { ScreenContext } from '../components/Screen';
import ReanimatedNativeStackScreen from './ReanimatedNativeStackScreen';
import AnimatedScreen from './ReanimatedScreen';
class ReanimatedScreenWrapper extends React.Component {
ref = null;
setNativeProps(props) {
this.ref?.setNativeProps(props);
}
setRef = ref => {
this.ref = ref;
this.props.onComponentRef?.(ref);
};
render() {
const ReanimatedScreen = this.props.isNativeStack ? ReanimatedNativeStackScreen : AnimatedScreen;
return /*#__PURE__*/React.createElement(ReanimatedScreen, _extends({}, this.props, {
// @ts-ignore some problems with ref
ref: this.setRef
}));
}
}
export default function ReanimatedScreenProvider(props) {
return (
/*#__PURE__*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
React.createElement(ScreenContext.Provider, {
value: ReanimatedScreenWrapper
}, props.children)
);
}
//# sourceMappingURL=ReanimatedScreenProvider.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["React","ScreenContext","ReanimatedNativeStackScreen","AnimatedScreen","ReanimatedScreenWrapper","Component","ref","setNativeProps","props","setRef","onComponentRef","render","ReanimatedScreen","isNativeStack","createElement","_extends","ReanimatedScreenProvider","Provider","value","children"],"sourceRoot":"../../../src","sources":["reanimated/ReanimatedScreenProvider.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAA6B,OAAO;AAEhD,SAASC,aAAa,QAAQ,sBAAsB;AAEpD,OAAOC,2BAA2B,MAAM,+BAA+B;AACvE,OAAOC,cAAc,MAAM,oBAAoB;AAE/C,MAAMC,uBAAuB,SAASJ,KAAK,CAACK,SAAS,CAAc;EACzDC,GAAG,GAAyC,IAAI;EAExDC,cAAcA,CAACC,KAAkB,EAAQ;IACvC,IAAI,CAACF,GAAG,EAAEC,cAAc,CAACC,KAAK,CAAC;EACjC;EAEAC,MAAM,GAAIH,GAAyC,IAAW;IAC5D,IAAI,CAACA,GAAG,GAAGA,GAAG;IACd,IAAI,CAACE,KAAK,CAACE,cAAc,GAAGJ,GAAG,CAAC;EAClC,CAAC;EAEDK,MAAMA,CAAA,EAAG;IACP,MAAMC,gBAAgB,GAAG,IAAI,CAACJ,KAAK,CAACK,aAAa,GAC7CX,2BAA2B,GAC3BC,cAAc;IAClB,oBACEH,KAAA,CAAAc,aAAA,CAACF,gBAAgB,EAAAG,QAAA,KACX,IAAI,CAACP,KAAK;MACd;MACAF,GAAG,EAAE,IAAI,CAACG;IAAO,EAClB,CAAC;EAEN;AACF;AAEA,eAAe,SAASO,wBAAwBA,CAC9CR,KAAiC,EACjC;EACA;IAAA;IACE;IACAR,KAAA,CAAAc,aAAA,CAACb,aAAa,CAACgB,QAAQ;MAACC,KAAK,EAAEd;IAA+B,GAC3DI,KAAK,CAACW,QACe;EAAC;AAE7B","ignoreList":[]}

View File

@@ -0,0 +1,5 @@
import * as React from 'react';
// @ts-ignore file to be used only if `react-native-reanimated` available in the project
export default /*#__PURE__*/React.createContext(undefined);
//# sourceMappingURL=ReanimatedTransitionProgressContext.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["React","createContext","undefined"],"sourceRoot":"../../../src","sources":["reanimated/ReanimatedTransitionProgressContext.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B;;AASA,4BAAeA,KAAK,CAACC,aAAa,CAEhCC,SAAS,CAAC","ignoreList":[]}

View File

@@ -0,0 +1,4 @@
export { default as ReanimatedScreenProvider } from './ReanimatedScreenProvider';
export { default as useReanimatedTransitionProgress } from './useReanimatedTransitionProgress';
export { default as useReanimatedHeaderHeight } from './useReanimatedHeaderHeight';
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["default","ReanimatedScreenProvider","useReanimatedTransitionProgress","useReanimatedHeaderHeight"],"sourceRoot":"../../../src","sources":["reanimated/index.tsx"],"mappings":"AAAA,SAASA,OAAO,IAAIC,wBAAwB,QAAQ,4BAA4B;AAChF,SAASD,OAAO,IAAIE,+BAA+B,QAAQ,mCAAmC;AAC9F,SAASF,OAAO,IAAIG,yBAAyB,QAAQ,6BAA6B","ignoreList":[]}

View File

@@ -0,0 +1,10 @@
import * as React from 'react';
import ReanimatedHeaderHeightContext from './ReanimatedHeaderHeightContext';
export default function useReanimatedHeaderHeight() {
const height = React.useContext(ReanimatedHeaderHeightContext);
if (height === undefined) {
throw new Error("Couldn't find the header height using Reanimated. Are you inside a screen in a navigator with a header and your NavigationContainer is wrapped in ReanimatedScreenProvider?");
}
return height;
}
//# sourceMappingURL=useReanimatedHeaderHeight.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["React","ReanimatedHeaderHeightContext","useReanimatedHeaderHeight","height","useContext","undefined","Error"],"sourceRoot":"../../../src","sources":["reanimated/useReanimatedHeaderHeight.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,6BAA6B,MAAM,iCAAiC;AAE3E,eAAe,SAASC,yBAAyBA,CAAA,EAAG;EAClD,MAAMC,MAAM,GAAGH,KAAK,CAACI,UAAU,CAACH,6BAA6B,CAAC;EAE9D,IAAIE,MAAM,KAAKE,SAAS,EAAE;IACxB,MAAM,IAAIC,KAAK,CACb,6KACF,CAAC;EACH;EAEA,OAAOH,MAAM;AACf","ignoreList":[]}

View File

@@ -0,0 +1,10 @@
import * as React from 'react';
import ReanimatedTransitionProgressContext from './ReanimatedTransitionProgressContext';
export default function useReanimatedTransitionProgress() {
const progress = React.useContext(ReanimatedTransitionProgressContext);
if (progress === undefined) {
throw new Error("Couldn't find values for reanimated transition progress. Are you inside a screen in Native Stack?");
}
return progress;
}
//# sourceMappingURL=useReanimatedTransitionProgress.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["React","ReanimatedTransitionProgressContext","useReanimatedTransitionProgress","progress","useContext","undefined","Error"],"sourceRoot":"../../../src","sources":["reanimated/useReanimatedTransitionProgress.tsx"],"mappings":"AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,OAAOC,mCAAmC,MAAM,uCAAuC;AAEvF,eAAe,SAASC,+BAA+BA,CAAA,EAAG;EACxD,MAAMC,QAAQ,GAAGH,KAAK,CAACI,UAAU,CAACH,mCAAmC,CAAC;EAEtE,IAAIE,QAAQ,KAAKE,SAAS,EAAE;IAC1B,MAAM,IAAIC,KAAK,CACb,mGACF,CAAC;EACH;EAEA,OAAOH,QAAQ;AACjB","ignoreList":[]}