Skip to content

Fix/Avatar - Refactor to enable dynamic prop change #494

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 3 commits into from
Aug 6, 2019

Conversation

ArnonZ
Copy link
Contributor

@ArnonZ ArnonZ commented Aug 1, 2019

  • Moved all props from StyleSheet to class

if (hasImage) {
return (
<ImageContainer
animate={animate}
style={[this.styles.image, imageStyle]}
style={[this.getContainerStyle(), {...StyleSheet.absoluteFillObject}, imageStyle]}
Copy link
Collaborator

Choose a reason for hiding this comment

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

{...StyleSheet.absoluteFillObject}
spreading an object inside an empty object is good as just passing the object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@ArnonZ ArnonZ requested a review from ethanshar August 4, 2019 06:06
@ethanshar ethanshar merged commit 9ae5014 into master Aug 6, 2019
@ArnonZ ArnonZ deleted the fix/avatar-refactor branch August 8, 2019 10:56
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