Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Improve perf of post rendering

+3 -7
+3 -7
src/view/com/util/PostMeta.tsx
··· 1 1 import React, {useMemo} from 'react' 2 - import {StyleSheet, useWindowDimensions, Text, View} from 'react-native' 2 + import {StyleSheet, Text, View} from 'react-native' 3 3 import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' 4 4 import {Link} from '../util/Link' 5 5 import {PostDropdownBtn} from '../util/DropdownBtn' ··· 18 18 } 19 19 20 20 export function PostMeta(opts: PostMetaOpts) { 21 - const winDim = useWindowDimensions() 22 - const maxWidth = useMemo( 23 - () => ({maxWidth: ((winDim.width * 3) / 5) | 0}), 24 - [winDim.width], 25 - ) 26 21 return ( 27 22 <View style={styles.meta}> 28 23 <Link 29 - style={[styles.metaItem, maxWidth]} 24 + style={styles.metaItem} 30 25 href={opts.authorHref} 31 26 title={opts.authorHandle}> 32 27 <Text style={[s.f17, s.bold]} numberOfLines={1}> ··· 61 56 }, 62 57 metaItem: { 63 58 paddingRight: 5, 59 + maxWidth: '75%', 64 60 }, 65 61 })