decord/source/13705_getReactNativePlatformConstants.js

29 lines
1 KiB
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 13705
// Function ID: 13706
2026-07-23 10:11:24 +00:00
// Name: getReactNativePlatformConstants
2026-07-29 08:29:29 +00:00
// Dependencies: [17]
2026-07-23 10:11:24 +00:00
// Exports: default
2026-08-08 06:10:11 +00:00
// Module 13705 (getReactNativePlatformConstants)
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
export default function getReactNativePlatformConstants() {
let obj = { osRelease: "", model: "", serverHost: "", uiMode: "", serial: "", forceTouch: false, interfaceIdiom: "", systemName: "" };
if ("android" === get_ActivityIndicator.Platform.OS) {
obj = {};
2026-07-29 08:29:29 +00:00
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;
2026-07-23 10:11:24 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(obj);
obj.forceTouch = constants.forceTouchAvailable || false;
2026-07-23 10:11:24 +00:00
({ interfaceIdiom: obj2.interfaceIdiom, systemName: obj2.systemName } = constants);
2026-07-29 08:29:29 +00:00
return obj;
2026-07-23 10:11:24 +00:00
} else {
return obj;
}
};