You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
551 B

import React from 'react';
import { Text, StyleSheet, Platform } from 'react-native';
import { withTheme } from '../config';
const DialogTitle = ({ title, titleStyle, titleProps, }) => {
return (<Text style={StyleSheet.flatten([styles.title, titleStyle])} testID="Dialog__Title" {...titleProps}>
{title}
</Text>);
};
const styles = StyleSheet.create({
title: {
fontSize: 18,
fontWeight: Platform.OS === 'ios' ? '600' : '700',
marginBottom: 10,
},
});
export default withTheme(DialogTitle, 'DialogTitle');