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