xref: /expo/home/components/SectionHeader.tsx (revision a43f87fa)
1import { spacing } from '@expo/styleguide-native';
2import { Heading, Row } from 'expo-dev-client-components';
3import * as React from 'react';
4import { StyleProp, ViewStyle } from 'react-native';
5
6type Props = {
7  header: string;
8  style?: StyleProp<ViewStyle>;
9};
10
11export function SectionHeader({ header, style }: Props) {
12  return (
13    <Row px="small" py="small" align="center" style={style}>
14      <Heading
15        color="secondary"
16        size="small"
17        style={{ marginRight: spacing[2] }}
18        type="InterSemiBold">
19        {header}
20      </Heading>
21    </Row>
22  );
23}
24