diff --git a/src/view/lib/icons.tsx b/src/view/lib/icons.tsx new file mode 100644 index 00000000..6e6bcb77 --- /dev/null +++ b/src/view/lib/icons.tsx @@ -0,0 +1,44 @@ +import React from 'react' +import {StyleProp, ViewStyle} from 'react-native' +import Svg, {Circle, Line, G, Path} from 'react-native-svg' + +export function GridIcon({style}: {style?: StyleProp}) { + const DIM = 4 + const ARC = 2 + return ( + + + + + + + ) +} + +export function HomeIcon({style}: {style?: StyleProp}) { + return ( + + + + ) +} diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx index 17ae47ed..4acbbfd9 100644 --- a/src/view/shell/mobile/index.tsx +++ b/src/view/shell/mobile/index.tsx @@ -33,6 +33,7 @@ import {createBackMenu, createForwardMenu} from './history-menu' import {createAccountsMenu} from './accounts-menu' import {createLocationMenu} from './location-menu' import {s, colors} from '../../lib/styles' +import {GridIcon, HomeIcon} from '../../lib/icons' import {DEF_AVATER} from '../../lib/assets' const locationIconNeedsNudgeUp = (icon: IconProp) => icon === 'house' @@ -85,10 +86,19 @@ const Btn = ({ onPress?: (event: GestureResponderEvent) => void onLongPress?: (event: GestureResponderEvent) => void }) => { + let IconEl + if (icon === 'bars') { + IconEl = GridIcon + } else if (icon === 'house') { + IconEl = HomeIcon + } else { + IconEl = FontAwesomeIcon + } + if (inactive) { return ( - - + ) }