Skip to content

Next Release - #4043

Merged
isekovanic merged 5 commits into
mainfrom
develop
Dec 2, 2026
Merged

isekovanic merged 5 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

tbarbugli and others added 5 commits December 1, 2026 09:51
## Summary

Migrate macOS workflow jobs to the org self-hosted `scaleway-macos`
runner group.

With the `GetStream` organization IP allow list enabled
([SEC-2475](https://linear.app/stream/issue/SEC-2475/github-hardening)),
standard dynamic-IP GitHub-hosted macOS runners (`macos-*`, `xcode-*`)
are blocked from authenticated GitHub API and git access
(`GITHUB_TOKEN`). The `scaleway-macos` pool runs ephemeral Tart macOS
VMs (`ghcr.io/getstream/runner-macos:latest`) on Scaleway Apple Silicon
hosts behind a single allow-listed static NAT IP (`51.15.135.209`).

This repository has already been granted access to the `scaleway-macos`
runner group.

### Updated workflows (4 file(s), 4 `runs-on` update(s))
- `.github/workflows/build-ios-spm.yml` (1 `runs-on` update(s))
- `.github/workflows/e2e-test-cron.yml` (1 `runs-on` update(s))
- `.github/workflows/e2e-test.yml` (1 `runs-on` update(s))
- `.github/workflows/sample-distribution.yml` (1 `runs-on` update(s))

### Notes
> **Xcode 27 note:** `.github/workflows/e2e-test-cron.yml` and
`sample-distribution.yml` pin `xcode-version: '27.2'` (previously
`xcode-27`). The current `ghcr.io/getstream/runner-macos:latest` image
ships Xcode `16.0`–`26.3`; add Xcode 27 to the runner image before
merging jobs that require Xcode 27.
Ticket: https://linear.app/stream/issue/RN-547

Fixes #4030.

## 🎯 Goal

This PR lets integrators override or turn off the SDK's layout
transitions.

The composer, the suggestion list and the scroll to bottom button
animate their layout with a `200ms` transition. While this works well in
general, when a keyboard view moves them on every frame (like the
`KeyboardAvoidingView` from `react-native-keyboard-controller`), the
transition restarts on every frame and they trail behind the keyboard.
Until now there was no way to turn these off.

## πŸ›  Implementation details

- A new `AnimationsContext` holds the SDK's animations, starting with
`transitions`. `WithAnimations` overrides them for the tree below it,
the same way `WithComponents` does. Nested providers merge, the closest
one wins and `overrides` is read once at mount.
- Without a provider every component gets the defaults, which are the
exact transitions used today. Nothing changes for existing apps.
- Transitions are keyed by use case: `messageList`,
`scrollToBottomButton`, `suggestionList`, `suggestionListContent`,
`composer`, `composerContent`, `attachmentUploadPreviews`,
`notificationList`, `pollComposer` and `pollComposerOption`. Each one
has a `layout` field for now, which leaves room for `entering` and
`exiting` later.
- `null` turns a transition off. A missing key or `undefined` keeps the
parent's value, so an override is always explicit. `noTransitions` turns
everything off.
- All 28 layout transitions in core read from the context. `MessageList`
renders a plain `FlatList` when `messageList` is turned off, same as
`animateLayout={false}`.
- Unknown keys in `overrides` are a type error, also when the overrides
are not an inline object. The override types are derived from the
`Animations` shape, so a new field or namespace needs no extra types.
- The merge lives in `utils/mergeOverrides.ts`. It only walks plain
objects, so Reanimated builders are kept by reference and arrays are
replaced. Providers that pass the same `overrides` object share one
merged value.

```tsx
const animationOverrides = {
  transitions: {
    composer: { layout: null },
    messageList: { layout: null },
    scrollToBottomButton: { layout: null },
    suggestionList: { layout: null },
  },
} satisfies AnimationOverrides;

<WithAnimations overrides={animationOverrides}>
  <Channel channel={channel}>
    <MessageList />
    <MessageComposer />
  </Channel>
</WithAnimations>
```

Docs: GetStream/getstream.io#1303

## πŸ§ͺ Testing

- Unit tests cover the merge, the context, the type errors for unknown
keys and the `NotificationList` wiring.
- On an iOS simulator the composer still animates when it grows and
snaps in a single frame with `noTransitions`.
#4037)

Ticket: https://linear.app/stream/issue/RN-546

Fixes #4029.

## 🎯 Goal

Let apps theme the "Instant Commands" title in the attachment picker. It
was styled only by a local style, so an app that sets a custom font
through the theme got the system font for this one title.

## πŸ›  Implementation details

- A new theme key `attachmentPicker.commandsTitle` styles the title.
- It's applied after the default style, so the app's values win and
everything it doesn't set keeps the default.

## πŸ§ͺ Testing

- A unit test renders the picker with a `fontFamily` on `commandsTitle`
and checks that the title uses it and keeps its default weight.
Ticket: https://linear.app/stream/issue/RN-551

Fixes #4031. Stacked on #4037.

## 🎯 Goal

Stop the Reanimated warning "Dependencies should only be used on the web
and are always ignored on native". `MessageBubble` was the one in the
issue, but the same pattern was in 22 calls across the SDK.

## πŸ›  Implementation details

- Reanimated 4 ignores the dependencies of `useAnimatedStyle`,
`useDerivedValue` and `useAnimatedReaction` on native and warns once
they're passed. It rebuilds the worklet from its closure instead.
- All 22 calls drop the argument: the image gallery, `MessageBubble`,
`LoadingDot`, the progress bars, the bottom sheet and `AIUIEntrance`.
The SampleApp's `SecretMenu` had one more.
- A `no-restricted-syntax` lint rule fails on new ones. `null` is still
allowed, since it's needed to pass adapters.

### Reanimated 3

Reanimated 3 uses an explicit array on native. Without one, it restarts
a worklet when anything in its closure changes, which is what Reanimated
4 always does.

- 18 calls restart at the same moments as before. Either their arrays
listed everything they capture or they only read shared values.
- 4 calls captured values their arrays didn't list: the gallery's header
and footer opacity, its background, the first style in
`useAnimatedGalleryStyle` and the `StreamBottomSheetModalFlatList`
reaction. They now also update when a screen dimension, the background
colour or `scrollEnabledProp` changes, instead of keeping the old value.
- Nothing captures a value that changes identity on every render, so no
worklet restarts on every render.

## πŸ§ͺ Testing

- Lint, typecheck and the unit tests pass. The lint rule was checked
against calls with and without dependencies.
- Reanimated is mocked in Jest, so the change itself is covered by
reading the Reanimated 3 and 4 sources rather than by a test.
…Store binding (#4035)

## Summary

Bump `@stream-io/state-store` to `^1.3.1` in React Native core and
SampleApp, and replace the SDK's own `useStateStore` with the one from
`@stream-io/state-store/react-bindings`.

- **1.3.1** makes `subscribeWithSelector` notify when a selection
shrinks: an array selection that gets shorter, or an object selection
that loses a key
([js-toolkit#67](GetStream/js-toolkit#67)).
- **The SDK's own hook had the opposite gap.** Its snapshot compared
only the cached selection's keys, so a selection that grew (an added
key, or an array growing with the same prefix) kept returning the stale
value even though the store had notified.
- **`package/src/hooks/useStateStore.ts` is deleted.** All internal
imports now use `@stream-io/state-store/react-bindings`, as the AI
components already did. `hooks/index.ts` re-exports the binding's hook,
so `useStateStore` is still exported for integrators with the same
signature.
- No built-in selector changes shape, so only integrators' own selectors
behave differently.

## Tests

New `package/src/hooks/__tests__/useStateStore.test.tsx` (9 tests): the
SDK export is the binding's hook, a selection that gains or loses a key,
an array that grows or shrinks, references kept when nothing changed,
and no store. The two shrink tests fail with 1.3.0 and pass with 1.3.1.

## Verification

- `yarn lint` passes, including the entry-isolation check.
- `cd package && yarn test:typecheck` and `yarn build` pass.
- `yarn test:unit`: 3339 tests pass.
@isekovanic
isekovanic requested a review from oliverlaz December 2, 2026 12:00
@getstream-metis

Copy link
Copy Markdown

πŸ‘‹ Hi Ivan, want a second pair of eyes on this?

I'm Jeffery, Stream's review agent. I look for bugs, regressions, missing tests and slow paths, and I only post findings I've checked against the code.

  • Review this PR

Or comment /jeffery review. I'll stay quiet unless you ask.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Next releases

v10.4.0

10.4.0 (2026-12-02)

Bug Fixes

  • allow theming the instant commands title in the attachment picker (#4037) (c0f89af)
  • drop Reanimated hook dependencies that only warn on native (#4039) (ede2abd)
  • hooks: bump @stream-io/state-store to 1.3.1 and use its useStateStore binding (#4035) (ad0344c)

Features

  • allow overriding layout transitions through WithAnimations (#4036) (c347580)

sampleapp@v5.3.1

5.3.1 (2026-12-02)

Bug Fixes

  • drop Reanimated hook dependencies that only warn on native (#4039) (ede2abd)
  • hooks: bump @stream-io/state-store to 1.3.1 and use its useStateStore binding (#4035) (ad0344c)

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

SDK Size

title develop branch diff status
js_bundle_size 2085 KB 2085 KB 0 B 🟒
ai_components_size 353 KB 353 KB 0 B 🟒
a2ui_size 103 KB 103 KB 0 B 🟒

@isekovanic
isekovanic merged commit 46716f5 into main Dec 2, 2026
30 of 35 checks passed
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

πŸŽ‰ This PR is included in version 10.4.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.

3 participants