UNPKG

react-native-paper

Version:
40 lines 1.31 kB
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import * as React from 'react'; import { StyleSheet } from 'react-native'; import StyledText from './StyledText'; // @component-group Typography /** * @deprecated Deprecated in v5.x - use `<Text variant="bodyMedium" />` instead. * Typography component for showing a paragraph. * * <div class="screenshots"> * <img src="screenshots/paragraph.png" /> * </div> * * ## Usage * ```js * import * as React from 'react'; * import { Paragraph } from 'react-native-paper'; * * const MyComponent = () => ( * <Paragraph>Paragraph</Paragraph> * ); * * export default MyComponent; * ``` */ const Paragraph = props => /*#__PURE__*/React.createElement(StyledText, _extends({}, props, { alpha: 0.87, family: "regular", style: [styles.text, props.style] })); export default Paragraph; const styles = StyleSheet.create({ text: { fontSize: 14, lineHeight: 20, marginVertical: 2, letterSpacing: 0.25 } }); //# sourceMappingURL=Paragraph.js.map