Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Jan 28, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

lukmccall and others added 8 commits January 28, 2026 18:19
#42649)

# Why

Removed incorrect `@platform` annotations from `Stack.*` components.
Additionally added a short section to CLAUDE.md about docs.

# How

<!--
How did you build this feature or fix this bug and why?
-->

# Test Plan

<!--
Please describe how you tested this change and how a reviewer could
reproduce your test, especially if this PR does not include automated
tests! If possible, please also provide terminal output and/or
screenshots demonstrating your test/reproduction.
-->

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
-->

- [ ] I added a `changelog.md` entry and rebuilt the package sources
according to [this short
guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)

---------

Co-authored-by: Aman Mittal <amandeepmittal@live.com>
# Why

When using custom image icons in toolbar items, tabs, and menus,
developers need control over how iOS renders the image. By default, iOS
uses `.alwaysOriginal` rendering which preserves the original colors,
but when applying a `tintColor`, the icon should use `.alwaysTemplate`
rendering to respect the tint. Previously, this behavior was hardcoded
and developers couldn't override it.

**After**

```tsx
        <Stack.Toolbar.Button image={image2} />
        <Stack.Toolbar.Button image={image2} tintColor="red" />
        <Stack.Toolbar.Button image={image2} iconRenderingMode="template" tintColor="green" />
        <Stack.Toolbar.Button image={image2} iconRenderingMode="original" tintColor="orange" />
        <Stack.Toolbar.Button image={image2} iconRenderingMode="template" />
        <Stack.Toolbar.Button image={image2} iconRenderingMode="original" />
```

<img width="1108" height="305" alt="image"
src="https://github.com/user-attachments/assets/7f04476b-f1dc-4545-9383-45729ad2ff15"
/>


# How

Added `iconRenderingMode` prop to toolbar items, menu actions, and tab
bar icons across expo-router. The prop accepts `'template'` or
`'original'` values:

- **Smart defaults**: When `tintColor` is set, defaults to `'template'`
(icon respects tint color). Without `tintColor`, defaults to
`'original'` (preserves icon colors).
- **Explicit override**: Developers can explicitly set
`iconRenderingMode` to override the default behavior.

Components updated:
- `Stack.Toolbar.Button` and `Stack.Toolbar.Menu` (bottom toolbar)
- `Stack.Toolbar.Menu.Action` (menu actions)
- Header bar button items (left/right placement)
- Native tab bar icons

# Test Plan

1. Unit tests
2. Manual testing

# Checklist

<!--
Please check the appropriate items below if they apply to your diff.
-->

- [ ] I added a `changelog.md` entry and rebuilt the package sources
according to [this short
guide](https://github.com/expo/expo/blob/main/CONTRIBUTING.md#-before-submitting)
- [ ] This diff will work correctly for `npx expo prebuild` & EAS Build
(eg: updated a module plugin).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
@pull pull bot locked and limited conversation to collaborators Jan 28, 2026
@pull pull bot added the ⤵️ pull label Jan 28, 2026
@pull pull bot merged commit 15af589 into code:main Jan 28, 2026
13 of 28 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants