fix: export missing base UI components and correct stale JSDoc/comments#3730
Merged
Conversation
Adds missing package-root exports so documented primitives are importable: - ui: Input, SpeedSettingsButton, GiphyChip - UIComponents: EmptyList, EmptySearchResult, SearchInput, SelectionCircle - hook: useCooldownRemaining Also corrects source doc-comments that misled the SDK docs: - usePollContext error message referenced a non-existent useCreatePollContext - AttachmentPickerContext JSDoc referenced a non-existent setBottomInset setter - Chat useNativeMultipartUpload JSDoc @default true -> false (matches runtime) - ChannelsContext numberOfSkeletons comment default 6 -> 8 (matches runtime) Surfaced by the RN v9 documentation audit.
isekovanic
approved these changes
Jul 15, 2026
Contributor
SDK Size
|
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.
🎯 Goal
Fix issues surfaced by a documentation audit of the RN v9 docs against the SDK source: several documented base-UI primitives were not exported from the package root, and a few source doc-comments were stale (and were the origin of doc errors).
🛠 Implementation details
Missing package-root exports (documented components/hooks that failed to import from
stream-chat-react-native):components/ui/index.ts— exportInput,SpeedSettingsButton,GiphyChipcomponents/index.ts— exportEmptyList,EmptySearchResult,SearchInput,SelectionCircle(were inUIComponents/index.tsbut never re-exported, sincecomponents/index.tscherry-picksUIComponents/*rather than re-exporting the barrel), anduseCooldownRemainingStale source doc-comments corrected (each caused a corresponding docs bug):
contexts/pollContext/pollContext.tsx—usePollContexterror message referenced a non-existentuseCreatePollContexthookcontexts/attachmentPickerContext/AttachmentPickerContext.tsx— JSDoc referenced a non-existentsetBottomInsetsetter (the context exposes onlytopInset/bottomInsetvalues)components/Chat/Chat.tsx—useNativeMultipartUploadJSDoc@default true→@default false(matches the runtime default)contexts/channelsContext/ChannelsContext.tsx—numberOfSkeletonscomment default6→8(matches the runtime default inChannelList.tsx)🎨 UI Changes
None — export additions and doc-comment corrections only. No runtime/UI behavior change.
🧪 Testing
tsc --noEmit -p package/tsconfig.jsonpasses clean (0 errors) — confirms all new exports resolve without name collisions.☑️ Checklist
developbranch