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,40 @@
"use strict";
/**
* Simple cross fade animation
*/
export function forFade({
current
}) {
return {
sceneStyle: {
opacity: current.progress.interpolate({
inputRange: [-1, 0, 1],
outputRange: [0, 1, 0]
})
}
};
}
/**
* Animation where the screens slightly shift to left/right
*/
export function forShift({
current
}) {
return {
sceneStyle: {
opacity: current.progress.interpolate({
inputRange: [-1, 0, 1],
outputRange: [0, 1, 0]
}),
transform: [{
translateX: current.progress.interpolate({
inputRange: [-1, 0, 1],
outputRange: [-50, 0, 50]
})
}]
}
};
}
//# sourceMappingURL=SceneStyleInterpolators.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["forFade","current","sceneStyle","opacity","progress","interpolate","inputRange","outputRange","forShift","transform","translateX"],"sourceRoot":"../../../src","sources":["TransitionConfigs/SceneStyleInterpolators.tsx"],"mappings":";;AAKA;AACA;AACA;AACA,OAAO,SAASA,OAAOA,CAAC;EACtBC;AACgC,CAAC,EAAmC;EACpE,OAAO;IACLC,UAAU,EAAE;MACVC,OAAO,EAAEF,OAAO,CAACG,QAAQ,CAACC,WAAW,CAAC;QACpCC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACtBC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;MACvB,CAAC;IACH;EACF,CAAC;AACH;;AAEA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAC;EACvBP;AACgC,CAAC,EAAmC;EACpE,OAAO;IACLC,UAAU,EAAE;MACVC,OAAO,EAAEF,OAAO,CAACG,QAAQ,CAACC,WAAW,CAAC;QACpCC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACtBC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;MACvB,CAAC,CAAC;MACFE,SAAS,EAAE,CACT;QACEC,UAAU,EAAET,OAAO,CAACG,QAAQ,CAACC,WAAW,CAAC;UACvCC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;UACtBC,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE;QAC1B,CAAC;MACH,CAAC;IAEL;EACF,CAAC;AACH","ignoreList":[]}

View File

@@ -0,0 +1,13 @@
"use strict";
import { forFade, forShift } from "./SceneStyleInterpolators.js";
import { FadeSpec, ShiftSpec } from "./TransitionSpecs.js";
export const FadeTransition = {
transitionSpec: FadeSpec,
sceneStyleInterpolator: forFade
};
export const ShiftTransition = {
transitionSpec: ShiftSpec,
sceneStyleInterpolator: forShift
};
//# sourceMappingURL=TransitionPresets.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["forFade","forShift","FadeSpec","ShiftSpec","FadeTransition","transitionSpec","sceneStyleInterpolator","ShiftTransition"],"sourceRoot":"../../../src","sources":["TransitionConfigs/TransitionPresets.tsx"],"mappings":";;AACA,SAASA,OAAO,EAAEC,QAAQ,QAAQ,8BAA2B;AAC7D,SAASC,QAAQ,EAAEC,SAAS,QAAQ,sBAAmB;AAEvD,OAAO,MAAMC,cAAyC,GAAG;EACvDC,cAAc,EAAEH,QAAQ;EACxBI,sBAAsB,EAAEN;AAC1B,CAAC;AAED,OAAO,MAAMO,eAA0C,GAAG;EACxDF,cAAc,EAAEF,SAAS;EACzBG,sBAAsB,EAAEL;AAC1B,CAAC","ignoreList":[]}

View File

@@ -0,0 +1,18 @@
"use strict";
import { Easing } from 'react-native';
export const FadeSpec = {
animation: 'timing',
config: {
duration: 150,
easing: Easing.in(Easing.linear)
}
};
export const ShiftSpec = {
animation: 'timing',
config: {
duration: 150,
easing: Easing.inOut(Easing.ease)
}
};
//# sourceMappingURL=TransitionSpecs.js.map

View File

@@ -0,0 +1 @@
{"version":3,"names":["Easing","FadeSpec","animation","config","duration","easing","in","linear","ShiftSpec","inOut","ease"],"sourceRoot":"../../../src","sources":["TransitionConfigs/TransitionSpecs.tsx"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,cAAc;AAIrC,OAAO,MAAMC,QAAwB,GAAG;EACtCC,SAAS,EAAE,QAAQ;EACnBC,MAAM,EAAE;IACNC,QAAQ,EAAE,GAAG;IACbC,MAAM,EAAEL,MAAM,CAACM,EAAE,CAACN,MAAM,CAACO,MAAM;EACjC;AACF,CAAC;AAED,OAAO,MAAMC,SAAyB,GAAG;EACvCN,SAAS,EAAE,QAAQ;EACnBC,MAAM,EAAE;IACNC,QAAQ,EAAE,GAAG;IACbC,MAAM,EAAEL,MAAM,CAACS,KAAK,CAACT,MAAM,CAACU,IAAI;EAClC;AACF,CAAC","ignoreList":[]}