[ui][iOS] - Toggle component#41675
Merged
intergalacticspacehighway merged 8 commits intomainfrom Dec 17, 2025
Merged
Conversation
Contributor
|
Subscribed to pull request
Generated by CodeMention |
Collaborator
|
The Pull Request introduced fingerprint changes against the base commit: ec03b0f Fingerprint diff[
{
"op": "changed",
"beforeSource": {
"type": "dir",
"filePath": "../../packages/expo-ui/ios",
"reasons": [
"expoAutolinkingIos"
],
"hash": "f5f18ef35a5a035b63719a7a281766860d6d035e"
},
"afterSource": {
"type": "dir",
"filePath": "../../packages/expo-ui/ios",
"reasons": [
"expoAutolinkingIos"
],
"hash": "fef8553f168c152639237c414c3e315be4177941"
}
}
]Generated by PR labeler 🤖 |
amandeepmittal
approved these changes
Dec 16, 2025
Co-authored-by: Aman Mittal <amandeepmittal@live.com>
aleqsio
pushed a commit
that referenced
this pull request
Dec 22, 2025
# Why Follows our current efforts to match Expo UI API with SwiftUI's. Adds `Toggle` component. Currently we have a `Switch` component which is handling custom checkbox UI, `switch` and `button` styles. The `Toggle` replaces the `switch` and `button`. Custom checkbox can be created using `HStack` and `Image`. Since it is custom i think we should not support it with native code as it has opinionated styling. <!-- Please describe the motivation for this PR, and link to relevant GitHub issues, forums posts, or feature requests. --> # How - Added [Toggle](https://developer.apple.com/documentation/SwiftUI/Toggle) component, [toggleStyle](https://developer.apple.com/documentation/swiftui/view/togglestyle(_:)) and [labelsHidden](https://developer.apple.com/documentation/swiftui/view/labelshidden()) modifiers. - Matched Expo UI API with SwiftUI. - Added docs and examples. - Removed `Switch` Component. <!-- How did you build this feature or fix this bug and why? --> # Test Plan Tested example and docs. https://github.com/user-attachments/assets/3a776ce6-f787-4be5-9ef9-366edcf4bfbc <!-- 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. --> - [x] 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) - [x] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin). - [x] 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>
shubh73
added a commit
to shubh73/expo
that referenced
this pull request
Jan 26, 2026
The native SwitchView was removed in expo#41675 and replaced with Toggle, but the TypeScript exports were left behind. This removes the orphaned Switch component and updates all examples/docs to use Toggle instead.
3 tasks
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.
Why
Follows our current efforts to match Expo UI API with SwiftUI's. Adds
Togglecomponent. Currently we have aSwitchcomponent which is handling custom checkbox UI,switchandbuttonstyles. TheTogglereplaces theswitchandbutton. Custom checkbox can be created usingHStackandImage. Since it is custom i think we should not support it with native code as it has opinionated styling.How
SwitchComponent.Test Plan
Tested example and docs.
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2025-12-16.at.20.44.53.mov
Checklist
changelog.mdentry and rebuilt the package sources according to this short guidenpx expo prebuild& EAS Build (eg: updated a module plugin).