Skip to content
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

CP-9399: K2 Alert #2129

Merged
merged 5 commits into from
Dec 2, 2024
Merged

CP-9399: K2 Alert #2129

merged 5 commits into from
Dec 2, 2024

Conversation

onghwan
Copy link
Contributor

@onghwan onghwan commented Nov 25, 2024

Description

Ticket: CP-9399

  • Implement k2 alert for Alert use cases in the new design, especially for alerts having text inputs.
    • showAlert() function for simple alerts
    • AlertWithTextInputs component for the alerts with text inputs.

Screenshots/Videos

iOS Android

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is no longer used.

@@ -65,7 +65,7 @@
"@react-native-firebase/messaging": "21.0.0",
"@react-native-google-signin/google-signin": "13.1.0",
"@react-native-menu/menu": "1.1.3",
"@react-navigation/bottom-tabs": "6.6.1",
Copy link
Contributor Author

@onghwan onghwan Nov 25, 2024

Choose a reason for hiding this comment

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

I had to downgrade this to match the version used in expo-router. If we don't, it raises an error when this package is used.

visible,
title,
description,
verticalButtons,
Copy link
Collaborator

Choose a reason for hiding this comment

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

how does it look with verticalButtons?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • verticalButtons: false
  • verticalButtons: true

verticalButtons:true will be useful when alert has more than two buttons.

Comment on lines +77 to +78
shouldDisable: (values: Record<string, string>) => {
return values.delete !== DELETE_TEXT
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice way to disable!

Copy link
Collaborator

@atn4z7 atn4z7 left a comment

Choose a reason for hiding this comment

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

looks great. left some minor comments.

@onghwan onghwan requested a review from atn4z7 December 2, 2024 16:36
@onghwan onghwan merged commit 1fafb9a into main Dec 2, 2024
4 checks passed
@onghwan onghwan deleted the CP-9399 branch December 2, 2024 19:48
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