UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

111 lines (108 loc) • 3.02 kB
import { AppIcon, AppInfo, AppIntents, AppTracking, Audio, Auth, BackgroundTasks, Barometer, Battery, Brightness, Browser, CNContactStore, CNContactViewController, CNMutableContact, Calendar, CameraView, Clipboard, Color, Compose, Contacts, ContextMenu, Crypto, DataScannerViewController, Database, Device, DeviceAttestation, DocumentPicker, FileSystem, Fonts, Haptics, ImageManipulator, ImagePicker, KeepAwake, LaunchScreen, LightSensor, LiveActivities, LocalAuthentication, Localization, Location, MFMailComposeViewController, MFMessageComposeViewController, MapServices, Menu, MenuAction, Motion, Network, Notifications, Open, Pedometer, PhotoLibrary, Print, ProtectedStore, Purchases, QuickActions, ReservedRegions, ScreenCapture, ScreenOrientation, SecureStore, Share, Speech, SpeechSynthesis, SplitView, Storage, StoreReview, Swift, TextInput, ToolbarHost, ToolbarItem, UI, Updates, VNDocumentCameraViewController, WidgetUI, Widgets, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource } from "./platform/index.mjs"; import { SafeAreaProvider, SafeAreaView, initialWindowMetrics } from "./safe-area-context/index.mjs"; function currentPlatform() { const defined = Reflect.get(globalThis, "__ONE_PLATFORM__") ?? (typeof process !== "undefined" ? process.env.ONE_PLATFORM : void 0); return defined === "ios" || defined === "android" ? defined : "web"; } const iOS = Object.freeze({ ...Swift, VNDocumentCameraViewController, DataScannerViewController, CNContactViewController, CNMutableContact, CNContactStore, MFMailComposeViewController, MFMessageComposeViewController, WidgetUI, CameraView, Color: Color.ios, MenuAction, SplitView, ToolbarHost, BarButtonItem: ToolbarItem, ZoomTransitionAlignmentRectDetector, ZoomTransitionEnabler, ZoomTransitionSource }); const Android = Object.freeze({ ...Compose, Color: Color.android, Menu, ContextMenu, CameraView }); const SafeArea = Object.freeze({ Provider: SafeAreaProvider, View: SafeAreaView, initialMetrics: initialWindowMetrics }); const UI$1 = Object.freeze({ ...UI, Fonts, SafeArea, TextInput, ReservedRegions }); const One = Object.freeze({ get platform() { return currentPlatform(); }, openURL: Open.openURL, openShare: Open.openShare, openSettings: Open.openSettings, AppInfo, Database, Widgets, LiveActivities, LocalAuthentication, ProtectedStore, KeepAwake, Print, StoreReview, QuickActions, Location, FileSystem, Audio, Share, PhotoLibrary, MapServices, AppTracking, AppIcon, ScreenOrientation, ScreenCapture, Purchases, ImageManipulator, Device, Crypto, Localization, Motion, BackgroundTasks, AppIntents, DeviceAttestation, Contacts, Calendar, iOS, Android, UI: UI$1, Notifications, Clipboard, Barometer, LightSensor, Pedometer, Battery, Brightness, SpeechSynthesis, Haptics, LaunchScreen, Network, Auth, Browser, ImagePicker, DocumentPicker, SecureStore, Storage, Speech, Updates }); export { One }; //# sourceMappingURL=one.mjs.map