-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix URL rendering #6392
Fix URL rendering #6392
Conversation
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.
Skimmed over this quickly. Looks good I just found one typo. I will test it out a bit more later.
@@ -21,13 +21,22 @@ const propTypes = { | |||
|
|||
/** Prevent the default ContextMenu on web/Desktop */ | |||
preventDefaultContentMenu: PropTypes.bool, | |||
|
|||
/** Use Text instead of Presable to create inline layout. |
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.
NAB: Typo
/** Use Text instead of Presable to create inline layout. | |
/** Use Text instead of Pressable to create inline layout. |
A few points for the reviewer:
There is one known issue to me apart from the ones which I am fixing.
my other approach to fix this issue also fixes it but that is very complex. I still think not a priority issue so we should adopt the simpler approach over the complex one for now which PR is doing. |
I will add videos later before lets go over review. |
@mountiny Thoughts...? |
@parasharrajat Sorry, I got a bit stuck with university coursework. Looking into it now. Tested it and seems to work well, which is great. The concern from the OG comment was the inability to set the custom delay for long press which is no really a problem since we use default and it is probably good to use default as that is what users are most likely used to.
Could you share screenshare of how this problem looks like? It does not look like a deal breaker for sure. I like this approach so feel free to update the PR body appropriately with all QA steps for both issues and videos, I will give the code another look. |
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.
LGTM, I feel like if the limitations do not break any current functionality and fix the listed problems, it is a good way to go. Let me know when this is ready for final look.
@parasharrajat That is no problem:) |
@mountiny Changes done. Ready for final review. |
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.
LGTM, just requesting comment to be added to two places. Thank you for the changes.
</Pressable> | ||
); | ||
const PressableWithSecondaryInteraction = (props) => { | ||
const Node = props.inline ? RNText : Pressable; |
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.
@parasharrajat I think it might be worth adding a little comment explaining this option here as well. I know you have added the comment to the PropType, but one compact line in here would be handy. Can you please add one? Thank you 🙌
</Pressable> | ||
); | ||
const PressableWithSecondaryInteraction = (props) => { | ||
const Node = props.inline ? RNText : Pressable; |
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.
Same here
Done |
Yikes, there is some linter problem 😬 |
Linting issues fixed @mountiny. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Accessibility issues found in this PR:
Chat_link.sent.cannot.be.activated.using.keyboard.mp4 |
🚀 Deployed to production by @roryabraham in version: 1.1.17-7 🚀
|
Details
display:inline
to create inline block.Fixed Issues
$ #5572
$ #4911
Tests | QA Steps
e.g.
hello https://expensify.slack.com/archives/C01GTK53T8Q/p1632613507072000?
Tested On
Screenshots
Web | Desktop
output_file.mp4
Mobile Web
output_file.mp4
iOS
Android
output_file.mp4