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。

726 B
Raw Blame
import type { ViewProps } from 'react-native';
import { requireNativeViewManager } from 'expo-modules-core';
import native from '../../modules/cindy-html-preview/src/CindyHtmlPreviewModule';

// Old binaries can still show the saved text; never load a half-compatible
// interactive View or fall back to same-origin/opaque srcdoc.
export const mcpAppSurfaceAvailable = !!native?.appHostAvailable && !!native.startApp;
type Props = ViewProps & { surfaceId: string };
export const NativeMcpAppHost = mcpAppSurfaceAvailable
  ? requireNativeViewManager<Props>('CindyHtmlPreview', 'AppHost') : null;
export const NativeMcpAppSlot = mcpAppSurfaceAvailable
  ? requireNativeViewManager<Props>('CindyHtmlPreview', 'AppSlot') : null;