1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/app-mobile/components/screens/ConfigScreen/SectionHeader.tsx

26 lines
559 B
TypeScript
Raw Normal View History

import * as React from 'react';
import { ConfigScreenStyleSheet } from './configScreenStyles';
import { View, Text, LayoutChangeEvent } from 'react-native';
interface Props {
styles: ConfigScreenStyleSheet;
title: string;
onLayout?: (event: LayoutChangeEvent)=> void;
}
const SectionHeader: React.FunctionComponent<Props> = props => {
return (
<View
style={props.styles.headerWrapperStyle}
onLayout={props.onLayout}
>
<Text style={props.styles.headerTextStyle}>
{props.title}
</Text>
</View>
);
};
export default SectionHeader;