Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,66 @@
|
||||
/* Metro module 4577; source: design/animation/reanimated/spring/spring.tsx; dependencies: [4505, 4506, 4017, 2] */
|
||||
function _fun38834(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4755:6, offset: 0x010cc8b8, size: 135 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = (require(4505) /* metro dependency 4505: ReanimatedConstants */).CONFIG_NEVER_ANIMATE;
|
||||
object = {code: "function withSpring_springTsx1(toValue,config,shouldAnimate='respect-motion-settings',callback){const{accessibilityPreferencesSharedValue,CONFIG_NEVER_ANIMATE,ReduceMotion,REAwithSpring}=this.__closure;const reducedMotionEnabled=accessibilityPreferencesSharedValue.get().reduceMotion;const animate=shouldAnimate==='animate-always'||shouldAnimate==='respect-motion-settings'&&!reducedMotionEnabled;const configForRea=!animate?CONFIG_NEVER_ANIMATE:shouldAnimate==='animate-always'?{...(config!==null&&config!==void 0?config:{}),reduceMotion:ReduceMotion.Never}:config;return REAwithSpring(toValue,configForRea,callback);}"};
|
||||
const value = _fun38835();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/animation/reanimated/spring/spring.tsx');
|
||||
exports.withSpring = value;
|
||||
}
|
||||
|
||||
function _fun38835() { // fn#38835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4755:760, offset: 0x010cc93f, size: 132 bytes, params: 1, frame: 16
|
||||
const closure = withSpring_38836;
|
||||
const object2 = {};
|
||||
object2.accessibilityPreferencesSharedValue = (require(4506) /* metro dependency 4506: AccessibilityPreferencesSharedValueNative */).accessibilityPreferencesSharedValue;
|
||||
object2.CONFIG_NEVER_ANIMATE = CONFIG_NEVER_ANIMATE;
|
||||
const ReduceMotion = (require(4017) /* metro dependency 4017: ReanimatedRexport */).ReduceMotion;
|
||||
object2.ReduceMotion = ReduceMotion;
|
||||
object2.REAwithSpring = (require(4017) /* metro dependency 4017: ReanimatedRexport */).withSpring;
|
||||
closure.__closure = object2;
|
||||
closure.__workletHash = 14783154107972;
|
||||
closure.__initData = env0_3;
|
||||
return closure;
|
||||
}
|
||||
|
||||
function withSpring_38836(a0, a1) { // fn#38836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4755:786, offset: 0x010cc9c3, size: 210 bytes, params: 3, frame: 18
|
||||
var r1;
|
||||
var r4;
|
||||
var object2;
|
||||
const ReduceMotion = (require(4017) /* metro dependency 4017: ReanimatedRexport */).ReduceMotion;
|
||||
const value = a1;
|
||||
const value2 = a2;
|
||||
const r5 = value2 !== undefined ? value2 : 'respect-motion-settings';
|
||||
const accessibilityPreferencesSharedValue = (require(4506) /* metro dependency 4506: AccessibilityPreferencesSharedValueNative */).accessibilityPreferencesSharedValue;
|
||||
const get = accessibilityPreferencesSharedValue.get;
|
||||
const reduceMotion = Reflect.apply(get, accessibilityPreferencesSharedValue, []).reduceMotion;
|
||||
const value5 = r5 === 'animate-always';
|
||||
if (value5) {
|
||||
if (value5) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value ?? ({}), undefined);
|
||||
object2['reduceMotion'] = ReduceMotion.Never;
|
||||
r1 = object2;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
r4 = r1;
|
||||
} else if (r5 !== 'respect-motion-settings') {
|
||||
r4 = CONFIG_NEVER_ANIMATE;
|
||||
} else if (reduceMotion) {
|
||||
r4 = CONFIG_NEVER_ANIMATE;
|
||||
} else {
|
||||
if (value5) {
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value ?? ({}), undefined);
|
||||
object2['reduceMotion'] = ReduceMotion.Never;
|
||||
r1 = object2;
|
||||
} else {
|
||||
r1 = value;
|
||||
}
|
||||
r4 = r1;
|
||||
}
|
||||
return (require(4017) /* metro dependency 4017: ReanimatedRexport */).withSpring(a0, r4, a3);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Metro module 4581; source: design/animation/reanimated/spring/springPresets.tsx; dependencies: [2] */
|
||||
function _fun38861(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4759:6, offset: 0x010cde19, size: 188 bytes, params: 8, frame: 15
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/animation/reanimated/spring/springPresets.tsx');
|
||||
exports.SUBTLE_SPRING = {'mass': 1, 'damping': 27, 'stiffness': 300};
|
||||
exports.ON_PRESS_SPRING = {'mass': 1, 'overshootClamping': true, 'damping': 27, 'stiffness': 300};
|
||||
exports.springSlow = {'mass': 1, 'damping': 30, 'stiffness': 380};
|
||||
exports.springUnclamped = {'mass': 0.35, 'damping': 13, 'stiffness': 250};
|
||||
exports.springUnclampedBounce = {'mass': 0.3, 'damping': 13, 'stiffness': 250};
|
||||
exports.springStandard = {'mass': 0.35, 'damping': 13, 'stiffness': 250, 'overshootClamping': true};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user