-
Notifications
You must be signed in to change notification settings - Fork 262
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
Implement iOS "Cancel" button #5376
Conversation
e988822
to
1bcff4b
Compare
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.
181f90a
to
fbb4356
Compare
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.
fbb4356
to
5f06ba6
Compare
Seems we need to wrap another container around the component since originally it had the default flex properties on the outermost container, while the new container needs different flex properties. |
Why does the outer-most container view need |
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.
Please provide screenshots of all locations this component is used before merging this PR. This UI corruption is pretty badly broken
4b38a59
to
6f58008
Compare
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.
A few things left-over and missed
padding: theme.rem(1), | ||
margin: -theme.rem(1) | ||
})) | ||
|
||
const CancelButton = styled(Animated.View)<{ |
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.
Replace Animated.View for View.
} | ||
}) | ||
|
||
const CancelText = styled(Animated.Text)(theme => { |
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.
Replace Animated.View for View.
textAlign: 'center', | ||
whiteSpace: 'nowrap', | ||
minWidth: theme.rem(4), | ||
flexShrink: 0 |
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.
Remove minWidth in favor of margins.
alignItems: 'center', | ||
justifyContent: 'center', | ||
marginLeft: theme.rem(0.5), | ||
opacity: isFocused ? 1 : 0, |
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.
Use same margins on each side instead of a minWidth on the text:
marginHorizontal: theme.rem(0.5),
6f58008
to
c6107e7
Compare
c6107e7
to
352c9cb
Compare
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-11-28.at.17.04.37.mp4
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have: