mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 09:01:19 +00:00
Rename all references across the codebase: package names, imports, source IDs, directory names, docs, and configs. Co-authored-by: Ona <no-reply@ona.com>
33 lines
534 B
TypeScript
33 lines
534 B
TypeScript
import { SymbolView, SymbolViewProps, SymbolWeight } from "expo-symbols"
|
|
import { StyleProp, ViewStyle } from "react-native"
|
|
|
|
export function IconSymbol({
|
|
name,
|
|
size = 24,
|
|
color,
|
|
style,
|
|
weight = "regular",
|
|
}: {
|
|
name: SymbolViewProps["name"]
|
|
size?: number
|
|
color: string
|
|
style?: StyleProp<ViewStyle>
|
|
weight?: SymbolWeight
|
|
}) {
|
|
return (
|
|
<SymbolView
|
|
weight={weight}
|
|
tintColor={color}
|
|
resizeMode="scaleAspectFit"
|
|
name={name}
|
|
style={[
|
|
{
|
|
width: size,
|
|
height: size,
|
|
},
|
|
style,
|
|
]}
|
|
/>
|
|
)
|
|
}
|