Bluesky app fork with some witchin' additions 馃挮
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 43 lines 948 B view raw
1import React from 'react' 2import {View} from 'react-native' 3 4import {type Avatar} from '#/screens/Onboarding/StepProfile/index' 5import {atoms as a, useTheme} from '#/alf' 6 7export function AvatarCreatorCircle({ 8 avatar, 9 size = 125, 10}: { 11 avatar: Avatar 12 size?: number 13}) { 14 const t = useTheme() 15 const Icon = avatar.placeholder.component 16 17 const styles = React.useMemo( 18 () => ({ 19 imageContainer: [ 20 a.rounded_full, 21 a.overflow_hidden, 22 a.align_center, 23 a.justify_center, 24 a.border, 25 t.atoms.border_contrast_high, 26 { 27 height: size, 28 width: size, 29 backgroundColor: avatar.backgroundColor, 30 }, 31 ], 32 }), 33 [avatar.backgroundColor, size, t.atoms.border_contrast_high], 34 ) 35 36 return ( 37 <View> 38 <View style={styles.imageContainer}> 39 <Icon height={85} width={85} style={{color: t.palette.white}} /> 40 </View> 41 </View> 42 ) 43}