Skip to content

Added Callout and WarningCallout objects#37

Open
jvogt23 wants to merge 2 commits intomainfrom
callout
Open

Added Callout and WarningCallout objects#37
jvogt23 wants to merge 2 commits intomainfrom
callout

Conversation

@jvogt23
Copy link
Collaborator

@jvogt23 jvogt23 commented Feb 22, 2026

Added Callout and WarningCallout objects. Confirm look, feel and functionality against https://github.com/RoboJackets/apiary-mobile/blob/main/base/src/main/java/org/robojackets/apiary/base/ui/callout/Callout.kt

@jvogt23 jvogt23 requested a review from elysseaa March 14, 2026 16:18
marginBottom: 4,
},
}),
[props.backgroundColor, props.borderColor, props.padding, currentTheme],
Copy link
Contributor

Choose a reason for hiding this comment

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

I think useMemo is used to save computations by caching the dependencies passed into it, but I don't think that things like background color or current theme will change that frequently for it to really need useMemo. But it's technically an optimization, so it doesn't cause problems

<View style={styles.header}>
<MaterialDesignIcons
name="alert-circle-outline"
color={currentTheme.onSurface}
Copy link
Contributor

Choose a reason for hiding this comment

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

This icon is not visible on dark mode but is visible on light mode, I think it has something to do with the onSurface color for dark mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants