import * as React from 'react'; import { Text, StyleSheet } from 'react-native'; import StyledText from './StyledText'; type Props = React.ComponentProps & { children: React.ReactNode; }; // @component-group Typography /** * Typography component for showing a title. * *
* *
* * ## Usage * ```js * import * as React from 'react'; * import { Title } from 'react-native-paper'; * * const MyComponent = () => ( * Title * ); * * export default MyComponent; * ``` */ const Title = (props: Props) => ( ); export default Title; const styles = StyleSheet.create({ text: { fontSize: 20, lineHeight: 30, marginVertical: 2, letterSpacing: 0.15, }, });