import * as React from 'react'; import { Text, TextStyle, StyleSheet, StyleProp } from 'react-native'; import StyledText from './StyledText'; export type Props = React.ComponentProps & { style?: StyleProp; children: React.ReactNode; }; // @component-group Typography /** * Typography component for showing a subheading. * *
* *
* * ## Usage * ```js * import * as React from 'react'; * import { Subheading } from 'react-native-paper'; * * const MyComponent = () => ( * Subheading * ); * * export default MyComponent; * ``` */ const Subheading = (props: Props) => ( ); export default Subheading; const styles = StyleSheet.create({ text: { fontSize: 16, lineHeight: 24, marginVertical: 2, letterSpacing: 0.5, }, });