Version: 1.x.x

Avatar

A basic button component that should render nicely on any platform. Supports a minimal level of customization.

import { Avatar } from 'react-native-noxi';
<Avatar text="Jhon Doe" type="round" />

Example#


Reference#

Properties#

color#

• Optional color: undefined | string


onPress#

• Optional onPress: undefined | (event: GestureResponderEvent) => void


size#

• Optional size: undefined | number


src#

• Optional src: ImageSourcePropType


style#

• Optional style: StyleProp<ViewStyle>


styleText#

• Optional styleText: StyleProp<TextStyle>


text#

• Optional text: any


textColor#

• Optional textColor: undefined | string


theme#

• theme: [Theme]


type#

• Optional type: \"round\" | \"square\"