Repository navigation
Next Release - #4043
Merged
Merged
Next Release#4043
Conversation
## 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.
π 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.
Or comment |
Next releasesv10.4.010.4.0 (2026-12-02)Bug Fixes
Featuressampleapp@v5.3.15.3.1 (2026-12-02)Bug Fixes |
SDK Size
|
|
π This PR is included in version 10.4.0 π The release is available on:
Your semantic-release bot π¦π |
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
π Implementation details
π¨ UI Changes
iOS
Android
π§ͺ Testing
βοΈ Checklist
developbranch