decord/source/13251_getReactNativePlatformConstants.js
2026-07-22 07:54:56 +00:00

30 lines
1.1 KiB
JavaScript

// Module ID: 13251
// Function ID: 100535
// Name: getReactNativePlatformConstants
// Dependencies: []
// Exports: default
// Module 13251 (getReactNativePlatformConstants)
let closure_0 = require(dependencyMap[0]);
export default function getReactNativePlatformConstants() {
let obj = { GET_GUILD: false, shouldShowTiggerPawtect: false, _secureFramesRosterMap: false, green_apple: false, 9223372036854775807: false, -9223372036854775808: false, 0: false, 0: false };
if ("android" === Platform.Platform.OS) {
const _Object = Object;
obj = {};
({ Release: obj3.osRelease, Model: obj3.model, ServerHost: obj3.serverHost, uiMode: obj3.uiMode, Serial: obj3.serial } = Platform.Platform.constants);
return Object.assign({}, obj, obj);
} else if ("ios" === Platform.Platform.OS) {
const constants = Platform.Platform.constants;
obj = {};
let flag = constants.forceTouchAvailable;
if (!flag) {
flag = false;
}
obj.forceTouch = flag;
({ interfaceIdiom: obj2.interfaceIdiom, systemName: obj2.systemName } = constants);
return Object.assign({}, obj, obj);
} else {
return obj;
}
};