mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 09:09:29 +01:00
23 lines
498 B
TypeScript
23 lines
498 B
TypeScript
import colors from '@app/styles/colors'
|
|
import font from '@app/styles/font'
|
|
import React from 'react'
|
|
import { StyleSheet, Text, TextStyle } from 'react-native'
|
|
|
|
const Header: React.FC<{
|
|
style?: TextStyle
|
|
}> = ({ children, style }) => {
|
|
return <Text style={[styles.text, style]}>{children}</Text>
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
text: {
|
|
fontFamily: font.bold,
|
|
fontSize: 24,
|
|
color: colors.text.primary,
|
|
marginTop: 18,
|
|
marginBottom: 12,
|
|
},
|
|
})
|
|
|
|
export default Header
|