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