Skip to content

Next Release - #3859

Merged
isekovanic merged 2 commits into
mainfrom
develop
Oct 14, 2026
Merged

isekovanic merged 2 commits into
mainfrom
develop

Conversation

@isekovanic

Copy link
Copy Markdown
Contributor

🎯 Goal

πŸ›  Implementation details

🎨 UI Changes

iOS
Before After
Android
Before After

πŸ§ͺ Testing

β˜‘οΈ Checklist

  • I have signed the Stream CLA (required)
  • PR targets the develop branch
  • Documentation is updated
  • New code is tested in main example apps, including all possible scenarios
    • SampleApp iOS and Android
    • Expo iOS and Android

isekovanic and others added 2 commits October 14, 2026 11:19
## 🎯 Goal

Deprecate the standalone `@stream-io/chat-react-native-ai` package and
ship the AI components from the SDK itself, the same way React did in
GetStream/stream-chat-react#3314.

This is a direct port of [this part of the AI components
repo](https://github.com/GetStream/ai-components-js/tree/main/packages/react-native-sdk),
with some minor tweaks and fixes.

Apps import them from a separate entry point:

- `stream-chat-react-native/ai-components`
- `stream-chat-expo/ai-components`

Apps that don't import it are unaffected: no extra JS in their bundle
(+61 bytes, one empty native-handler slot) and no new required
dependencies.

## πŸ›  Implementation details

**Port.** Markdown, syntax highlighting, charts, the AI composer and
dictation are ported 1:1. The only deliberate changes are:

- `ShimmeringView` is removed; the typing indicator uses the SDK's
native shimmer, laid over the text.
- If the dictation module isn't compiled in, the mic button hides itself
instead of crashing.
- `react-syntax-highlighter` moves to v16, for the Prism CVE.
- The native code is registered by the two wrappers instead of a
separate package.

**Isolation.** `validate-entry-isolation` (part of `yarn lint`) fails if
the main entry points ever reach the AI code or its dependencies. It
also fails if the AI entry reaches the chat SDK, so AI-only apps don't
bundle chat. Both directions are confirmed with real Metro bundles.

**Dependencies.** The JS-only libraries (zod, the highlighter,
simple-markdown, state-store) are regular dependencies. Skia and
victory-native are optional peers, needed only by apps that use the AI
components.

**Native.**

- **PerfText:** an Android Fabric text view with a C++ shadow node,
built through a custom CMakeLists in each wrapper.
- **AIDictation:** a TurboModule for both platforms.
- **iOS dictation is opt-in:** enable it with
`$StreamChatEnableDictation = true` in the Podfile, or with the new
`stream-chat-expo` config plugin. Referencing the Speech framework makes
App Store Connect require a speech-recognition purpose string from every
app, so it isn't compiled in by default.
- **Android:** the library never declares `RECORD_AUDIO`.

**Fixes on top of the port**, mostly bugs inherited from upstream:

- A final dictation result arriving after recording stops is now applied
to the input.
- Android no longer cuts users off mid-sentence when the recognizer
sends no live results.
- The iOS first press no longer races the permission prompts.
- Per-method lodash imports (-45.6 KB min) and direct
`react-syntax-highlighter` imports (-369 KB min), both in AI bundles
only.
- The native shimmer now links on RN 0.76 iOS (`StreamShimmerViewCls`),
an existing v9 issue.

**Samples.** SampleApp gets an "AI Assistant" screen. The Expo ChatGPT
sample from `ai-components-js` is ported as `examples/ExpoChatGPTSample`
(Expo 57).

**Migration.** See `package/src/ai-components/README.md`: the new import
path, the Podfile flag and plugin rename, the Babel plugin `zod` needs,
and the removed exports.

## πŸ§ͺ Testing

## 🎨 UI Changes

---------

Co-authored-by: Anton Arnautov <arnautov.anton@gmail.com>
## 🎯 Goal

<!-- Describe why we are making this change -->

## πŸ›  Implementation details

<!-- Provide a description of the implementation -->

## 🎨 UI Changes

<!-- Add relevant screenshots -->

<details>
<summary>iOS</summary>


<table>
    <thead>
        <tr>
            <td>Before</td>
            <td>After</td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <!--<img src="" /> -->
            </td>
            <td>
                <!--<img src="" /> -->
            </td>
        </tr>
    </tbody>
</table>
</details>


<details>
<summary>Android</summary>

<table>
    <thead>
        <tr>
            <td>Before</td>
            <td>After</td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <!--<img src="" /> -->
            </td>
            <td>
                <!--<img src="" /> -->
            </td>
        </tr>
    </tbody>
</table>
</details>

## πŸ§ͺ Testing

<!-- Explain how this change can be tested (or why it can't be tested)
-->

## β˜‘οΈ Checklist

- [ ] I have signed the [Stream
CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform)
(required)
- [ ] PR targets the `develop` branch
- [ ] Documentation is updated
- [ ] New code is tested in main example apps, including all possible
scenarios
  - [ ] SampleApp iOS and Android
  - [ ] Expo iOS and Android
@github-actions

Copy link
Copy Markdown

Next releases

v9.10.0

9.10.0 (2026-10-14)

Features

sampleapp@v4.16.0

4.16.0 (2026-10-14)

Features

@Stream-SDK-Bot

Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 2033 KB 2033 KB 0 B 🟒
ai_components_size 130 KB 130 KB 0 B 🟒

@isekovanic
isekovanic merged commit 543ae1e into main Oct 14, 2026
18 checks passed
@stream-ci-bot

Copy link
Copy Markdown
Contributor

πŸŽ‰ This PR is included in version 9.10.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants