Switch to System font to fix emoji rendering
parent
65e5f2ac86
commit
39bab0bb08
|
@ -356,7 +356,7 @@ const styles = StyleSheet.create({
|
||||||
maxWidth: 240,
|
maxWidth: 240,
|
||||||
},
|
},
|
||||||
postText: {
|
postText: {
|
||||||
fontFamily: 'Helvetica Neue',
|
fontFamily: 'System',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
lineHeight: 20.8, // 1.3 of 16px
|
lineHeight: 20.8, // 1.3 of 16px
|
||||||
},
|
},
|
||||||
|
|
|
@ -206,7 +206,7 @@ const styles = StyleSheet.create({
|
||||||
paddingBottom: 8,
|
paddingBottom: 8,
|
||||||
},
|
},
|
||||||
postText: {
|
postText: {
|
||||||
fontFamily: 'Helvetica Neue',
|
fontFamily: 'System',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
lineHeight: 20.8, // 1.3 of 16px
|
lineHeight: 20.8, // 1.3 of 16px
|
||||||
},
|
},
|
||||||
|
|
|
@ -249,7 +249,7 @@ const styles = StyleSheet.create({
|
||||||
minHeight: 36,
|
minHeight: 36,
|
||||||
},
|
},
|
||||||
postText: {
|
postText: {
|
||||||
fontFamily: 'Helvetica Neue',
|
fontFamily: 'System',
|
||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
lineHeight: 20.8, // 1.3 of 16px
|
lineHeight: 20.8, // 1.3 of 16px
|
||||||
},
|
},
|
||||||
|
|
|
@ -98,13 +98,3 @@ function* toSegments(text: string, entities: Entity[]) {
|
||||||
yield text.slice(cursor, text.length)
|
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…
Reference in New Issue