@azure/core-amqp
Version:
Common library for amqp based azure sdks like @azure/event-hubs.
22 lines • 713 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { Platform } from "react-native";
/**
* Returns information about the platform this function is being run on.
* @internal
*/
export function getPlatformInfo() {
return `(${Platform.OS}-${Platform.Version})`;
}
/**
* Returns information about React-Native this function is being run on.
* @internal
*/
export function getFrameworkInfo() {
if (Platform.constants?.reactNativeVersion) {
const { major, minor, patch } = Platform.constants.reactNativeVersion;
return `react-native/${major}.${minor}.${patch}`;
}
return `react-native/unknown`;
}
//# sourceMappingURL=runtimeInfo-react-native.mjs.map