Skip to content

add loading component #909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 6, 2024
Merged

add loading component #909

merged 5 commits into from
Aug 6, 2024

Conversation

sieu-db
Copy link
Collaborator

@sieu-db sieu-db commented Jul 29, 2024

Overview

  • Support AcitivtyIndicator component
  • Make sure it's worked with existing size is "small" or "large", make sure it's scale correctly on iOS device
Screen.Recording.2024-07-31.at.11.05.06.mov

Copy link

linear bot commented Jul 29, 2024

@sieu-db sieu-db changed the title add activity indicator component add test component Jul 29, 2024
@sieu-db sieu-db marked this pull request as draft July 29, 2024 12:22
Copy link

Published version: @draftbit/[email protected]

@sieu-db sieu-db changed the title add test component add loading component Jul 29, 2024
Copy link

Published version: @draftbit/[email protected]

Copy link

Published version: @draftbit/[email protected]

@sieu-db sieu-db requested a review from YoussefHenna July 31, 2024 04:01
Copy link

Published version: @draftbit/[email protected]

@sieu-db sieu-db marked this pull request as ready for review July 31, 2024 04:01
YoussefHenna
YoussefHenna previously approved these changes Aug 5, 2024
Copy link
Collaborator

@YoussefHenna YoussefHenna left a comment

Choose a reason for hiding this comment

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

Some minor comments, otherwise awesome stuff!

Comment on lines 26 to 27
export enum ActivityIndicatorType {
plane = "plane",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
export enum ActivityIndicatorType {
plane = "plane",
export enum ActivityIndicatorType {
default = "default"
plane = "plane",

Let's have a default type to make it more explicit

Comment on lines 80 to 83
color,
theme,
type,
size,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
color,
theme,
type,
size,
theme,
color = theme.colors.branding.primary,
type = "default",
size = "small",

Let's add default values here to be consistent with how it's in other components

<View
style={{
transform: [{ scale: scaleLevel }],
}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

The style prop should be applied here instead of the child component so we'd need to extract it from rest and apply it directly.

Copy link

github-actions bot commented Aug 6, 2024

Published version: @draftbit/[email protected]

Copy link
Collaborator

@YoussefHenna YoussefHenna left a comment

Choose a reason for hiding this comment

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

Awesome. Don't forget to make the same changes for the 49 branch

@sieu-db
Copy link
Collaborator Author

sieu-db commented Aug 6, 2024

Yep sure. Thanks

@sieu-db sieu-db merged commit f122a06 into master Aug 6, 2024
3 checks passed
@sieu-db sieu-db deleted the sieu/p-5198-add-loading-component branch August 6, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants