UNPKG

react-native-elements

Version:
17 lines (16 loc) 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');