UNPKG

551 BJavaScriptView Raw
1import React from 'react';
2import { Text, StyleSheet, Platform } from 'react-native';
3import { withTheme } from '../config';
4const DialogTitle = ({ title, titleStyle, titleProps, }) => {
5 return (<Text style={StyleSheet.flatten([styles.title, titleStyle])} testID="Dialog__Title" {...titleProps}>
6 {title}
7 </Text>);
8};
9const styles = StyleSheet.create({
10 title: {
11 fontSize: 18,
12 fontWeight: Platform.OS === 'ios' ? '600' : '700',
13 marginBottom: 10,
14 },
15});
16export default withTheme(DialogTitle, 'DialogTitle');