Initial commit

This commit is contained in:
2025-06-18 17:42:52 +00:00
parent 96b87ff229
commit b72f80cd34
80 changed files with 2896 additions and 93 deletions
+6
View File
@@ -0,0 +1,6 @@
export default function NullComponent() {
// This component is used as a placeholder for the drawer item
// It does not render anything and is used to handle navigation
return null;
}
+2 -15
View File
@@ -6,19 +6,6 @@ import { ComponentProps } from 'react';
import { OpaqueColorValue, type StyleProp, type TextStyle } from 'react-native';
type IconMapping = Record<SymbolViewProps['name'], ComponentProps<typeof MaterialIcons>['name']>;
type IconSymbolName = keyof typeof MAPPING;
/**
* Add your SF Symbols to Material Icons mappings here.
* - see Material Icons in the [Icons Directory](https://icons.expo.fyi).
* - see SF Symbols in the [SF Symbols](https://developer.apple.com/sf-symbols/) app.
*/
const MAPPING = {
'house.fill': 'home',
'paperplane.fill': 'send',
'chevron.left.forwardslash.chevron.right': 'code',
'chevron.right': 'chevron-right',
} as IconMapping;
/**
* An icon component that uses native SF Symbols on iOS, and Material Icons on Android and web.
@@ -31,11 +18,11 @@ export function IconSymbol({
color,
style,
}: {
name: IconSymbolName;
name: any;
size?: number;
color: string | OpaqueColorValue;
style?: StyleProp<TextStyle>;
weight?: SymbolWeight;
}) {
return <MaterialIcons color={color} size={size} name={MAPPING[name]} style={style} />;
return <MaterialIcons color={color} size={size} name={name} style={style} />;
}