From 412212f764b8c21699ab0d41edfdc317132db475 Mon Sep 17 00:00:00 2001 From: gitsad Date: Tue, 7 Jul 2026 12:34:43 +0200 Subject: [PATCH 1/3] chore: added initial docs --- demo/src/docs/DocsView.tsx | 13 +- demo/src/docs/sections/ReactNative.tsx | 198 +++++++++++++++++++++++++ demo/src/styles.css | 30 ++++ 3 files changed, 239 insertions(+), 2 deletions(-) create mode 100644 demo/src/docs/sections/ReactNative.tsx diff --git a/demo/src/docs/DocsView.tsx b/demo/src/docs/DocsView.tsx index b1c5118..1ce2386 100644 --- a/demo/src/docs/DocsView.tsx +++ b/demo/src/docs/DocsView.tsx @@ -12,6 +12,7 @@ import { Integrations, INTEGRATIONS } from './sections/Integrations.js'; import { IntegrationLangchain } from './sections/IntegrationLangchain.js'; import { IntegrationAgui } from './sections/IntegrationAgui.js'; import { Usage, UsageHydrationPreview } from './sections/Usage.js'; +import { ReactNative, ReactNativeSnack } from './sections/ReactNative.js'; import { Validator } from './sections/Validator.js'; const INTEGRATION_COMPONENTS: Record = { @@ -32,6 +33,7 @@ const SECTIONS: Section[] = [ { slug: 'usage', label: 'Usage', component: Usage }, { slug: 'integrations', label: 'Integrations' }, { slug: 'components', label: 'Components' }, + { slug: 'react-native', label: 'React Native', component: ReactNative }, { slug: 'validator', label: 'Validator', component: Validator }, { slug: 'mcp', label: 'MCP & Skills', component: Mcp }, { slug: 'cli', label: 'CLI', component: Cli }, @@ -73,7 +75,8 @@ export function DocsView() { const showComponentsPreview = active === 'components'; const showUsagePreview = active === 'usage' && usageExampleOpen; - const showPreview = showComponentsPreview || showUsagePreview; + const showRnPreview = active === 'react-native'; + const showPreview = showComponentsPreview || showUsagePreview || showRnPreview; const previewEntry = COMPONENTS.find((c) => c.type === selectedComponent) ?? COMPONENTS[0]; const isPackagesActive = active === 'packages' || active.startsWith('packages/'); @@ -119,7 +122,11 @@ export function DocsView() { (s.slug === 'integrations' && isIntegrationsActive); return ( -
+