import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from "react";
import { Platform } from "react-native";
var PlatformContext = /* @__PURE__ */createContext({
  platform: Platform.OS
});
function PlatformProvider(param) {
  var {
    children,
    platform
  } = param;
  return /* @__PURE__ */_jsx(PlatformContext.Provider, {
    value: {
      platform: platform || Platform.OS
    },
    children
  });
}
var usePlatform = function () {
  return useContext(PlatformContext).platform;
};
export { PlatformProvider, usePlatform };
//# sourceMappingURL=PlatformContext.native.js.map
