Repository navigation
feat: React Native UI components (CopilotChat, useRenderTool, CopilotModal) - #4715
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📣 Social Copy GeneratorGenerate social media copies (Twitter/X, LinkedIn, Blog Post) for this PR using Claude.
|
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkitnext/angular
@copilotkit/core
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-inspector
commit: |
jpr5
force-pushed
the
blitz/rn-ui-components/integration
branch
from
May 22, 2026 19:07
e509ea2 to
2988ac9
Compare
jpr5
force-pushed
the
blitz/rn-ui-components/integration
branch
from
May 22, 2026 20:51
d82b2e8 to
735b384
Compare
…TypingIndicator components Message bubble components with streaming markdown support, typing indicator animation, and timestamp formatting. Includes unit tests and edge case coverage.
Hook for rendering custom tool UIs in React Native with a store-based context provider. Includes tests for register/unregister, subscriber notification, and error handling.
FlatList-based chat interface and bottom-sheet modal overlay. Includes suggestion pills, keyboard avoidance, custom FlatList support, and comprehensive test coverage.
Add peer dependencies, export new components and hooks from package entry point, integrate RenderToolProvider into CopilotKitProvider, configure vitest and tsdown, add usage documentation.
Merged
3 tasks done
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add pre-built UI components to
@copilotkit/react-nativeto close the parity gap with the web SDK. The package shipped as headless (hooks + communication layer). This PR adds the React Native equivalents of the web SDK's chat components.Components
CopilotChat— FlatList-based chat with message bubbles, tool call rendering viauseRenderToolRegistry, error handling, empty state with suggestion pills, keyboard avoidance,extraData-driven re-renders,FlatListComponentprop for bottom-sheet compatibilityCopilotModal— bottom-sheet overlay using@gorhom/bottom-sheetwithBottomSheetFlatListfor gesture-safe scrolling, configurable snap points, imperativeopen()/close()API,disableKeyboardAvoidingfor double-avoidance preventionAssistantMessage/UserMessage— styled chat bubbles with typing indicator animationCopilotMarkdown— wrapsreact-native-streamdown(Software Mansion Labs) for streaming markdown in AI responsesuseRenderTool— registers tools + render functions viaRenderToolContextwithuseSyncExternalStoreRenderToolProvider— auto-wrapped inCopilotKitProviderCR Summary
5-round 7-agent CR loop. Key bugs found and fixed:
useRenderToolContext()→useRenderToolRegistry()(runtime crash){toolCall}→{args, status})useSyncExternalStorereturning same Map ref (no re-renders)JSON.parsecrash on streaming tool call argumentsKeyboardAvoidingViewin CopilotModalextraDatamemoization on FlatListFlatListComponenttype incompatibility withBottomSheetFlatList@ag-ui/clientundeclared dependency → import from@copilotkit/sharedTest plan