Page MenuHomePhabricator

[native] created arrow component
ClosedPublic

Authored by ginsu on Sep 28 2022, 2:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 10:13 AM
Unknown Object (File)
Sun, Apr 21, 10:13 AM
Unknown Object (File)
Sun, Apr 21, 10:12 AM
Unknown Object (File)
Sun, Apr 21, 9:55 AM
Unknown Object (File)
Sat, Apr 6, 7:12 AM
Unknown Object (File)
Fri, Apr 5, 12:51 AM
Unknown Object (File)
Mar 23 2024, 9:25 AM
Unknown Object (File)
Mar 20 2024, 7:30 PM

Details

Summary

created Arrow component with react-native-svg

Used the React SVGR tool to help build the component with the only modification being that I added the viewBox prop and changed the color from gray to be the original hex value of #808080


Linear task: ENG-1779

Test Plan

Please refer to the screenshot below to see how the arrow looks visually

Screen Shot 2022-09-28 at 5.16.31 PM.png (1×1 px, 676 KB)

To test, use the React SVGR tool and input the following SVG code which is taken from the keyserver repo.

<svg width="27" height="30" viewBox="0 0 27 30" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M1 26H0.5V26.5H1V26ZM26.3536 26.3536C26.5488 26.1583 26.5488 25.8417 26.3536 25.6464L23.1716 22.4645C22.9763 22.2692 22.6597 22.2692 22.4645 22.4645C22.2692 22.6597 22.2692 22.9763 22.4645 23.1716L25.2929 26L22.4645 28.8284C22.2692 29.0237 22.2692 29.3403 22.4645 29.5355C22.6597 29.7308 22.9763 29.7308 23.1716 29.5355L26.3536 26.3536ZM0.5 0V26H1.5V0H0.5ZM1 26.5H26V25.5H1V26.5Z" fill="#808080"/>
</svg>

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, abosh, rohan.
ginsu edited the test plan for this revision. (Show Details)
ginsu requested review of this revision.Sep 28 2022, 2:31 PM
This revision is now accepted and ready to land.Sep 28 2022, 5:20 PM

I assume that we're going to hold off on landing this until the arrow looks better, yeah?

@ashoat yes I will create a follow-up diff where the arrows are aligned to the thread and everything looks clean

This revision was automatically updated to reflect the committed changes.