mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
26 lines
559 B
TypeScript
26 lines
559 B
TypeScript
|
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;
|