-
Notifications
You must be signed in to change notification settings - Fork 127
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
Fixed badge animation #71
Merged
Merged
Changes from 16 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
55501ff
badge support
ShayanJavadi 246a2e6
remove react-native-material-ui
ShayanJavadi 12dfe07
Added Badge.js
ShayanJavadi f51f54c
updated prop types
ShayanJavadi 8d8c6eb
removed old prop type
ShayanJavadi ff505da
documented badge changes
ShayanJavadi cff8403
fixed isBadgeVisible documentation
ShayanJavadi 99ed535
Final changes
ShayanJavadi 6d2d59f
final changes
ShayanJavadi 3f70221
removed extra dependencies
ShayanJavadi d1566fa
android compatibility
ShayanJavadi 30c1f93
android compatibility
ShayanJavadi d79ab78
animation fix
ShayanJavadi 37195dd
animation fix
ShayanJavadi d8e347e
updated readme
ShayanJavadi cd46e3f
Merge branch 'master' into master
ShayanJavadi 83880ae
changed fixed position value to dynamic
ShayanJavadi a504e78
updated readme with new styles
ShayanJavadi 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.
In an active Tab, this position causes the Badge to be far away from the Icon. This happens because it's a fixed value, but the position depends on the screen dimension, shifting, and Tab amount.
I would suggest something like
left: '50%', marginLeft: 15
. This way, it's positioned in the center of the Tab and then moved to the left. Looks like this:Feel free to use a bigger/smaller value for
marginLeft
– depending on how you think it should be positioned.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.
done