Skip to content

[ui][android] Add IconButton.#41232

Merged
aleqsio merged 2 commits intomainfrom
@aleqsio/11-25-_ui_android_add_iconbutton
Dec 3, 2025
Merged

[ui][android] Add IconButton.#41232
aleqsio merged 2 commits intomainfrom
@aleqsio/11-25-_ui_android_add_iconbutton

Conversation

@aleqsio
Copy link
Copy Markdown
Contributor

@aleqsio aleqsio commented Nov 25, 2025

Why

It's a different compose component from the regular button. While you can get mostly the same thing with a regular button it seems a common enough pattern to warrant a native component (?) – open to discussing.

How

Test Plan

Checklist

@expo-bot
Copy link
Copy Markdown
Collaborator

expo-bot commented Nov 25, 2025

The Pull Request introduced fingerprint changes against the base commit: 94a23f5

Fingerprint diff
[
  {
    "op": "changed",
    "beforeSource": {
      "type": "dir",
      "filePath": "../../packages/expo-ui/android",
      "reasons": [
        "expoAutolinkingAndroid"
      ],
      "hash": "07599c4d772481d062ceb38a738fcd3194cbb59b"
    },
    "afterSource": {
      "type": "dir",
      "filePath": "../../packages/expo-ui/android",
      "reasons": [
        "expoAutolinkingAndroid"
      ],
      "hash": "191c36707802ba844bf3a4183c0e696dabe56296"
    }
  }
]

Generated by PR labeler 🤖

@aleqsio aleqsio force-pushed the @aleqsio/11-25-_ui_android_add_iconbutton branch from 527b5ef to 44918dc Compare November 25, 2025 17:49
@aleqsio aleqsio force-pushed the @aleqsio/11-25-_ui_android_add_missing_scopes_to_modifiers branch from 8f1c134 to 3fcd734 Compare November 25, 2025 18:07
@aleqsio aleqsio force-pushed the @aleqsio/11-25-_ui_android_add_iconbutton branch from 44918dc to 497b352 Compare November 25, 2025 18:07
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Nov 25, 2025
@aleqsio aleqsio marked this pull request as ready for review November 26, 2025 11:18
@github-actions
Copy link
Copy Markdown
Contributor

Subscribed to pull request

File Patterns Mentions
packages/expo-ui/** @behenate, @douglowder

Generated by CodeMention

Copy link
Copy Markdown
Contributor

@Kudo Kudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • leaving some ni comments but we can follow up in separate pr. given this code are referenced from <Button> directly, we can update with <Button> together later.

  • would be good to add NCL example. i'm not quite clear that how to pass an icon to <IconButton>

val (colors) = props.elementColors
val (disabled) = props.disabled

DynamicTheme {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine for now but i was thinking to keep each component as simple and 1:1 mapping from js <-> compose. we should reduce DynamicTheme in most of places. maybe just keep DynamicTheme in the <Host> component.

),
shape = shapeFromShapeRecord(props.shape.value)
) {
Box(modifier = Modifier.fillMaxSize()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto. we may try to remove the Box here

@aleqsio aleqsio force-pushed the @aleqsio/11-25-_ui_android_add_iconbutton branch 3 times, most recently from 03eac30 to 6c77bce Compare December 3, 2025 17:23
@aleqsio aleqsio force-pushed the @aleqsio/11-25-_ui_android_add_missing_scopes_to_modifiers branch 2 times, most recently from 090fb5b to 01198d0 Compare December 3, 2025 17:28
Copy link
Copy Markdown
Contributor Author

aleqsio commented Dec 3, 2025

Merge activity

  • Dec 3, 5:32 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 3, 5:35 PM UTC: Graphite rebased this pull request as part of a merge.
  • Dec 3, 5:36 PM UTC: @aleqsio merged this pull request with Graphite.

@aleqsio aleqsio changed the base branch from @aleqsio/11-25-_ui_android_add_missing_scopes_to_modifiers to graphite-base/41232 December 3, 2025 17:33
@aleqsio aleqsio changed the base branch from graphite-base/41232 to main December 3, 2025 17:33
@aleqsio aleqsio force-pushed the @aleqsio/11-25-_ui_android_add_iconbutton branch from 6c77bce to 10725bb Compare December 3, 2025 17:34
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Dec 3, 2025
@aleqsio aleqsio merged commit ec077a4 into main Dec 3, 2025
19 checks passed
@aleqsio aleqsio deleted the @aleqsio/11-25-_ui_android_add_iconbutton branch December 3, 2025 17:36
@Kudo Kudo added the published Changes from the PR have been published to npm label Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants