Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

917 B
Raw Blame
import { Platform, type ViewProps } from 'react-native';
import { requireNativeViewManager, requireOptionalNativeModule } from 'expo-modules-core';

const native = Platform.OS === 'ios'
  ? requireOptionalNativeModule<{ residentHistoryAvailable?: boolean }>('XdtIosActionSheet') : null;
// An older installed iOS binary must retain normal navigation, never use a
// root overlay that intercepts the native interactive-pop gesture.
export const needsResidentHistoryUpgrade = Platform.OS === 'ios' && !native?.residentHistoryAvailable;
export const NativeHistoryHost = native?.residentHistoryAvailable
  ? requireNativeViewManager<ViewProps & { surfaceId: string }>('XdtIosActionSheet', 'ResidentHistoryHost') : null;
export const NativeHistorySlot = native?.residentHistoryAvailable
  ? requireNativeViewManager<ViewProps & { surfaceId: string; selected: boolean }>('XdtIosActionSheet', 'ResidentHistorySlot') : null;