-
Notifications
You must be signed in to change notification settings - Fork 1
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
Third Party Button Component #25
base: main
Are you sure you want to change the base?
Conversation
|
||
const ThirdPartyButton: React.FC<Props> = ({ imgSrc, handleClick, width, height }: Props) => { | ||
return ( | ||
<TouchableOpacity onPress={handleClick} style={styles.buttonContainer}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @sivaShilpa! :) Can you replace TouchableOpacity
with Pressable
? According to the docs it's a more future-proof way to handle the input: https://reactnative.dev/docs/touchableopacity
return ( | ||
<ThirdPartyButton | ||
imgSrc="./assets/google-icon.svg" | ||
handleClick={() => {}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a TODO comment for the work left pending 👍🏽 (creating a ticket and adding it to the comment would also be great that way we know what is left to do and we can scope it out during a meeting)
imgSrc="./assets/google-icon.svg" | ||
handleClick={() => {}} | ||
width={40} | ||
height={40} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potential enhancement for your button: Adding a "size" property of "S", "M" or "L" instead of hardcoding width and height so the buttons can be predictable sizes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sivaShilpa thank you for the great work! Please look at the suggestions and let me know what you think
@sivaShilpa is this PR ready for review again? |
Done
To Do