-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add Hover to TabItem #28357
Merged
MariaHCD
merged 40 commits into
Expensify:main
from
wildan-m:wildan/fix/26648-3-tab-hover
Oct 9, 2023
Merged
Add Hover to TabItem #28357
Changes from 17 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
1cf2613
Separate pressable with animated.view, add hover color to tabitem
wildan-m 9810019
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m e3b8121
make tab label always strong
wildan-m 6a4c887
prettier and lint
wildan-m c4d0a93
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m f81b3d5
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m 52091e8
Merge branch 'wildan/fix/26648-3-tab-hover' of https://github.com/wil…
wildan-m 42265f0
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m a672fc0
Merge branch 'wildan/fix/26648-3-tab-hover' of https://github.com/wil…
wildan-m ad0eb57
Keep AnimatedPressableWithFeedback for optimum performance
wildan-m 67842c1
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m edb3947
Merge branch 'wildan/fix/26648-3-tab-hover' of https://github.com/wil…
wildan-m 919c15d
change to undefined instead of empty object
wildan-m 477f181
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m 9b7edfb
Merge branch 'wildan/fix/26648-3-tab-hover' of https://github.com/wil…
wildan-m 395d6d8
run prettier
wildan-m 941e1ca
remove unnecessary comment
wildan-m 5373a25
change view to animated.view
wildan-m f2dd997
remove unnecessary variable
wildan-m 96c178b
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m a9a1a00
add Hoverable component
wildan-m 21ee1d2
remove unused import
wildan-m c307423
remove hoverBackgroundColor props, create tabBackground style function
wildan-m 79ec65c
remove defaultprops unnecessary code
wildan-m e523fe9
add tabActiveOpacity and tabInactiveOpacity
wildan-m 74b15c4
run prettier
wildan-m 610fcb0
fix tabInactiveOpacity
wildan-m 4e4fcd5
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m 6c16d06
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m 3b96816
fix tab opacity
wildan-m 2dccca9
extract style logic outside the style object
wildan-m d3d7787
run prettier
wildan-m c4ff0e2
add activeOpacity, inactiveOpacity to tabOpacity style function
wildan-m cb4c757
run prettier
wildan-m d1208c4
unify tabOpacity style function
wildan-m 8bf5ead
Revert "fix tab opacity"
wildan-m 00945f4
Resolve issue hover not working after pressing back from another screen
wildan-m b783633
Merge branch 'main' of https://github.com/wildan-m/App into wildan/fi…
wildan-m bab483b
tidy up code
wildan-m e2f3650
run prettier
wildan-m File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why are we defining this here and passing it as a prop rather than just passing the value inside TabSelectorItem?
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.
I'm trying to make it consistent with how
backgroundColor
passed, also it can be a tiny feature in case we need to customize the tabitem hover color.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.
if that is not required we can directly use
styles.highlightBG
in the tabitem inner animated.viewThere 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.
@Ollyws , sorry I misunderstood your question, yes, we can simplify it without declaring a variable. it just updated.