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.
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
Animations for the IOU flow #4070
Animations for the IOU flow #4070
Changes from all commits
b392aee
2401b69
31c74e6
0a2672f
2ec237e
726421a
05ed316
5a4326a
e3e24c2
6945514
d7d6a3f
d548279
5255541
bf68d2f
d5734d5
54b9c25
fd9f63f
74e27ef
e06bc60
b3fc7c4
7ab444b
a712c94
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Is there a reason that each of the AnimatedStep has a different style?
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 just moved the style from the
View
that was wrapping our steps (like in the previous comment) to theAnimatedStep
, that's why the style is different for each step.This was necessary because wrapping the step with a
AnimatedStep
(Animatable.View
) without a style was changing the styling of the step.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.
Can't we leave flex1 on the
AnimatedStep
and putpageWrapper
style within this component?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.
Hmm. I think it's bad to have the container style spread through multiple views, but yes I can change it!
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.
Hmm, let's not do it then. It's just not obvious why the steps have different styles here and I worry this is confusing.
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 think this view is useless now?
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.
Yes! It's on the
AnimatedStep
that wraps theIOUAmountPage
now.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.
Can you remove
<>
in that case?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 don't think we can. Since we removed the
View
that was wrapping the whole component, we have to wrap it in something else (we can't return multiple childrens). The React.Fragment (<>) is default way to do this.Let me know if you think I'm missing something.
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.
No, it looked to me like the outer fragment was wrapping a single component. I see now there are multiple, so no changes are required.