decord/source/13901_getReactNativePlatformConstants.js
2026-08-25 06:04:03 +00:00

28 lines
1 KiB
JavaScript

// Module ID: 13901
// Function ID: 13902
// Name: getReactNativePlatformConstants
// Dependencies: [17]
// Exports: default
// Module 13901 (getReactNativePlatformConstants)
import closure_0 from "get ActivityIndicator" /* 17 */;
export default function getReactNativePlatformConstants() {
let obj = { osRelease: "", model: "", serverHost: "", uiMode: "", serial: "", forceTouch: false, interfaceIdiom: "", systemName: "" };
if ("android" === Platform.Platform.OS) {
obj = {};
const merged = Object.assign(obj);
({ Release: obj3.osRelease, Model: obj3.model, ServerHost: obj3.serverHost, uiMode: obj3.uiMode, Serial: obj3.serial } = tmp.Platform.constants);
return obj;
} else if ("ios" === tmp.Platform.OS) {
const constants = tmp.Platform.constants;
obj = {};
const merged1 = Object.assign(obj);
obj.forceTouch = constants.forceTouchAvailable || false;
({ interfaceIdiom: obj2.interfaceIdiom, systemName: obj2.systemName } = constants);
return obj;
} else {
return obj;
}
};