Switch to System font to fix emoji rendering
This commit is contained in:
parent
65e5f2ac86
commit
39bab0bb08
4 changed files with 3 additions and 13 deletions
|
@ -356,7 +356,7 @@ const styles = StyleSheet.create({
|
|||
maxWidth: 240,
|
||||
},
|
||||
postText: {
|
||||
fontFamily: 'Helvetica Neue',
|
||||
fontFamily: 'System',
|
||||
fontSize: 16,
|
||||
lineHeight: 20.8, // 1.3 of 16px
|
||||
},
|
||||
|
|
|
@ -206,7 +206,7 @@ const styles = StyleSheet.create({
|
|||
paddingBottom: 8,
|
||||
},
|
||||
postText: {
|
||||
fontFamily: 'Helvetica Neue',
|
||||
fontFamily: 'System',
|
||||
fontSize: 16,
|
||||
lineHeight: 20.8, // 1.3 of 16px
|
||||
},
|
||||
|
|
|
@ -249,7 +249,7 @@ const styles = StyleSheet.create({
|
|||
minHeight: 36,
|
||||
},
|
||||
postText: {
|
||||
fontFamily: 'Helvetica Neue',
|
||||
fontFamily: 'System',
|
||||
fontSize: 16,
|
||||
lineHeight: 20.8, // 1.3 of 16px
|
||||
},
|
||||
|
|
|
@ -98,13 +98,3 @@ function* toSegments(text: string, entities: Entity[]) {
|
|||
yield text.slice(cursor, text.length)
|
||||
}
|
||||
}
|
||||
|
||||
function stripUsername(v: string): string {
|
||||
return v.trim().replace('@', '')
|
||||
}
|
||||
|
||||
function isSameLink(a: string, b: string) {
|
||||
a = a.startsWith('http') ? a : `https://${a}`
|
||||
b = b.startsWith('http') ? b : `https://${b}`
|
||||
return a === b
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue