Repository navigation
docs(react-native): Offline Support for the React Native UI Kit - #610
Draft
raj-dubey1 wants to merge 13 commits into
Draft
raj-dubey1 wants to merge 13 commits into
raj-dubey1 wants to merge 13 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WEaVigCRBjkftm78T25MQA
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
raj-dubey1
marked this pull request as draft
November 16, 2026 14:02
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XbguTt1cqFxTDQyroF6wHx
- Files picked into the composer tray are not queued offline; say so,
and list what is queued (text, custom, voice notes, uploaded media).
- Logout and user switch delete the cache; a restart with the same user
keeps it (the old "logging in again keeps the cache" was wrong).
- Retry on a message the SDK no longer holds removes the row.
- A failed edit is not put back and goes to the composer's onError.
- Download and Share copy local files only from the SDK media folder.
- Thread header counts a queued reply once.
- Escape the {count} placeholders so MDX does not evaluate them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
- methods: offline setting in UIKitSettings and Init (with an example), logout clears the offline cache, send* promise behaviour offline. - CLI and Expo integration: short note with requirements and a link. - overview: Offline Support card. - conversations and message list: hideOfflineNotices prop and a note. - message composer, compact composer, thread header: one-line notes. - events: ccMessageSendStateChanged and ccOfflineCacheReset. - localize: the offline string keys with their English texts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
…messages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
This branch was successfully 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.
Update (ENG-57592): review against the final 5.6.0 code, plus offline coverage across the RN v5 pages
The new page was re-checked claim by claim against the final 5.6.0 UI Kit code and the Chat SDK release it pairs with. What was wrong is fixed below, and the other React Native v5 pages now mention offline where it matters. Still draft.
Corrections to
offline-support.mdxCometChatUIKit.send*promises. Rewritten from the code paths:ERROR_PENDING_QUEUE_LIMIT/QUEUE_FULL.DISCARDED. The UI Kit side effects and the composeronErrorbehaviour are spelled out.ERROR_OFFLINE_MESSAGE_DISCARDED, as does a reset whose loss the SDK cannot count.onError.hideOfflineNotices. It hides all one-line offline notices, including "Sending… try again in a moment", "File too large to send offline" and "Available when online".hideError. It also hides the "Connect to load …" state, on the lists that take the prop.cc-composer-inputtestID is new; the send button's ID already existed.{count}placeholders in tables so MDX doesn't evaluate them.Offline added to other RN v5 pages
methods.mdx:offlinerow in the UIKitSettings table, plus an "Init with offline support" example.send*promises behave offline.react-native-cli-integration.mdx,expo-integration.mdx: a short note covering the requirements, op-sqlite, the native rebuild and a link.overview.mdx: an Offline Support card.conversations.mdx,message-list.mdx: thehideOfflineNoticesprop and a behaviour note.message-composer.mdx,compact-message-composer.mdx,threaded-messages-header.mdx: short notes and a link.events.mdx:OfflineMessageEvents.ccMessageSendStateChangedandccOfflineCacheReset.localize.mdx: the 23 offline string keys with their English texts. They are present in all 18 languages.core-features.mdx: the composer row now says tray files picked offline are not queued.Review round 1
offline-support.mdx(Attachments and media): dropped the claim that a file sent withenableMultipleAttachments={false}is queued, so the page no longer promises queueing for media picked offline. The voice-note sentence stays, and the section now matches the "Works offline" list.Review round 2
offline-support.mdx(Logout and user switch): the link to thesend*promises heading now uses the id Mintlify renders,#cometchatuikit-send-promises. It pointed to#cometchatuikitsend-promises, which doesn't exist. The anchor check now uses the same slug rule.Checks
docs.jsonparses; everyui-kit/react-native/*nav entry has a file#anchorlink on the lines this PR adds resolves to a heading id, using the id Mintlify renders (.becomes-)mint broken-linksdesign-system.mdx,llms-index.mdx→/llms.txt,/llms-full.txt); none addedWhat's added (original description)
ui-kit/react-native/offline-support.mdx("Offline Support"), covering:UIKitSettings.offline,initFromSettings, andCometChat.isOfflineEnabled().onErrormatrix, thesend*promise contract, andOfflineMessageEvents.hideOfflineNotices, custom views,messageListStyles.offlineStyles, and translations.core-features.mdx: a short "Offline Support" section with a component table and a link to the new page.docs.json, RN v5 → Features → Chat, right aftercore-features.llms-react-native-v5.mdx: the new page is listed under Core & configuration.Links go to the merged RN SDK pages (
sdk/react-native/offline-*); SDK content is not repeated here.Needs confirmation
*, offline support is feature-detected at runtime, and the example app uses^4.2.0. The release that carries the latest offline fixes is newer, and the requirements section recommends the latest SDK. Should the minimum be raised to that release's version number?Agent-built with Claude Code (pipeline developer step); review by a docs code owner required.
🤖 Generated with Claude Code