Add consistent view headers

This commit is contained in:
Paul Frazee 2022-11-01 11:06:43 -05:00
parent 0fd2c3c4cb
commit ab134cac93
10 changed files with 164 additions and 64 deletions

View file

@ -1,5 +1,6 @@
import React, {useEffect} from 'react'
import {StyleSheet, Text, View} from 'react-native'
import {View} from 'react-native'
import {ViewHeader} from '../com/util/ViewHeader'
import {ProfileFollowers as ProfileFollowersComponent} from '../com/profile/ProfileFollowers'
import {ScreenParams} from '../routes'
import {useStores} from '../../state'
@ -16,16 +17,8 @@ export const ProfileFollowers = ({visible, params}: ScreenParams) => {
return (
<View>
<Text style={styles.title}>Followers of {name}</Text>
<ViewHeader title="Followers" subtitle={`of ${name}`} />
<ProfileFollowersComponent name={name} />
</View>
)
}
const styles = StyleSheet.create({
title: {
fontSize: 21,
fontWeight: 'bold',
padding: 10,
},
})