diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-27 15:51:24 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-27 15:51:24 -0600 |
commit | 7916b26aadb7e003728d9dc653ab8b8deabf4076 (patch) | |
tree | 507d24512fd71c67d4fe49af4ae5f8746444cceb /src/view/lib | |
parent | 0673129b2018c9db0f7c3fc3e2c3214150efcfb8 (diff) | |
download | voidsky-7916b26aadb7e003728d9dc653ab8b8deabf4076.tar.zst |
Break out the web/native image picking code and make some progress on the web version
Diffstat (limited to 'src/view/lib')
-rw-r--r-- | src/view/lib/icons.tsx | 71 |
1 files changed, 70 insertions, 1 deletions
diff --git a/src/view/lib/icons.tsx b/src/view/lib/icons.tsx index 23a8e29dd..f400c3f72 100644 --- a/src/view/lib/icons.tsx +++ b/src/view/lib/icons.tsx @@ -1,6 +1,6 @@ import React from 'react' import {StyleProp, TextStyle, ViewStyle} from 'react-native' -import Svg, {Path} from 'react-native-svg' +import Svg, {Path, Rect} from 'react-native-svg' export function GridIcon({ style, @@ -458,3 +458,72 @@ export function CommentBottomArrow({ </Svg> ) } + +export function SquareIcon({ + style, + size, + strokeWidth = 1.3, +}: { + style?: StyleProp<TextStyle> + size?: string | number + strokeWidth?: number +}) { + return ( + <Svg + fill="none" + viewBox="0 0 24 24" + strokeWidth={strokeWidth || 1} + stroke="currentColor" + width={size || 24} + height={size || 24} + style={style}> + <Rect x="6" y="6" width="12" height="12" strokeLinejoin="round" /> + </Svg> + ) +} + +export function RectWideIcon({ + style, + size, + strokeWidth = 1.3, +}: { + style?: StyleProp<TextStyle> + size?: string | number + strokeWidth?: number +}) { + return ( + <Svg + fill="none" + viewBox="0 0 24 24" + strokeWidth={strokeWidth || 1} + stroke="currentColor" + width={size || 24} + height={size || 24} + style={style}> + <Rect x="4" y="6" width="16" height="12" strokeLinejoin="round" /> + </Svg> + ) +} + +export function RectTallIcon({ + style, + size, + strokeWidth = 1.3, +}: { + style?: StyleProp<TextStyle> + size?: string | number + strokeWidth?: number +}) { + return ( + <Svg + fill="none" + viewBox="0 0 24 24" + strokeWidth={strokeWidth || 1} + stroke="currentColor" + width={size || 24} + height={size || 24} + style={style}> + <Rect x="6" y="4" width="12" height="16" strokeLinejoin="round" /> + </Svg> + ) +} |