react-native-netlog-fab
Version:
Floating action button for network logging in React Native apps.
109 lines (108 loc) โข 2.72 kB
JavaScript
;
import React from 'react';
import { Text } from 'react-native';
import { jsx as _jsx } from "react/jsx-runtime";
export let Icons = /*#__PURE__*/function (Icons) {
Icons["MaterialIcons"] = "MaterialIcons";
return Icons;
}({});
const Icon = ({
name,
size,
color = '#000'
}) => {
// Map of Material Icons to their Unicode characters
const materialIcons = {
'expand-less': 'โฒ',
'expand-more': 'โผ',
'bug-report': '๐',
'network-check': '๐ก',
'wifi': '๐ถ',
'settings': 'โ๏ธ',
'code': '๐ป',
'analytics': '๐',
'list': '๐',
'search': '๐',
'info': 'โน๏ธ',
'warning': 'โ ๏ธ',
'error': 'โ',
'check-circle': 'โ
',
'refresh': '๐',
'close': 'โ',
'menu': 'โฐ',
'more-vert': 'โฎ',
'add': 'โ',
'remove': 'โ',
'edit': 'โ๏ธ',
'delete': '๐๏ธ',
'visibility': '๐๏ธ',
'visibility-off': '๐๏ธโ๐จ๏ธ',
'download': 'โฌ๏ธ',
'upload': 'โฌ๏ธ',
'cloud': 'โ๏ธ',
'cloud-done': 'โ๏ธโ
',
'cloud-off': 'โ๏ธโ',
'sync': '๐',
'sync-problem': '๐โ',
'history': 'โฑ๏ธ',
'schedule': '๐
',
'timer': 'โฐ',
'hourglass-empty': 'โ',
'hourglass-full': 'โณ',
'speed': 'โก',
'speed-off': 'โกโ',
'traffic': '๐ฆ',
'router': '๐ก',
'dns': '๐',
'storage': '๐พ',
'memory': '๐ง ',
'developer-mode': '๐จโ๐ป',
'devices': '๐ฑ',
'device-unknown': 'โ',
'devices-other': '๐ฑ+',
'security': '๐',
'vpn-lock': '๐',
'verified-user': 'โ',
'report-problem': 'โ ๏ธ',
'help': 'โ',
'help-outline': 'โ',
'feedback': '๐ฌ',
'support': '๐',
'priority-high': 'โ',
'low-priority': 'โฌ',
'star': 'โญ',
'star-border': 'โ',
'star-half': 'โญยฝ',
'favorite': 'โค๏ธ',
'favorite-border': '๐ค',
'bookmark': '๐',
'bookmark-border': '๐',
'flag': '๐ฉ',
'flag-outline': '๐ณ๏ธ',
'share': '๐ค',
'link': '๐',
'link-off': '๐โ',
'open-in-new': 'โ๏ธ',
'launch': '๐',
'exit-to-app': 'โช๏ธ',
'settings-backup-restore': '๐พโฉ๏ธ',
'restore': 'โฉ๏ธ',
'restore-page': '๐โฉ๏ธ',
'backup': '๐พ',
'cloud-upload': 'โ๏ธโฌ๏ธ',
'cloud-download': 'โ๏ธโฌ๏ธ',
'cloud-sync': 'โ๏ธ๐',
'cloud-queue': 'โ๏ธโณ',
'cloud-error': 'โ๏ธโ',
'cloud-circle': 'โ๏ธโญ'
};
return /*#__PURE__*/_jsx(Text, {
style: {
fontSize: size,
color
},
children: materialIcons[name] || 'โ'
});
};
export default Icon;
//# sourceMappingURL=Icons.js.map