1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
Zhiyuan Zheng
2021-02-10 00:40:44 +01:00
parent c46888acab
commit a40a645337
31 changed files with 593 additions and 558 deletions

View File

@ -5,16 +5,20 @@ import { StyleSheet, Text } from 'react-native'
export interface Props {
content: string
inverted?: boolean
}
// Used for Android mostly
const HeaderCenter = React.memo(
({ content }: Props) => {
({ content, inverted = false }: Props) => {
const { theme } = useTheme()
return (
<Text
style={[styles.text, { color: theme.primary }]}
style={[
styles.text,
{ color: inverted ? theme.primaryOverlay : theme.primary }
]}
children={content}
/>
)