import React, { forwardRef } from 'react'; import { StyleSheet } from 'react-native'; import { em } from '../css/units'; import Text from '../primitives/Text'; import View from '../primitives/View'; export const P = forwardRef(({ style, ...props }, ref) => { return ; }); export const B = forwardRef(({ style, ...props }, ref) => { return ; }); export const S = forwardRef(({ style, ...props }, ref) => { return ; }); export const I = forwardRef(({ style, ...props }, ref) => { return ; }); export const Q = forwardRef(({ children, cite, style, ...props }, ref) => { return ( "{children}" ); }); export const BlockQuote = forwardRef(({ style, cite, ...props }, ref) => { return ; }); export const BR = forwardRef(({ style, ...props }, ref) => { return ; }); export const Mark = forwardRef(({ style, ...props }, ref) => { return ; }); export const Code = forwardRef(({ style, ...props }, ref) => { return ; }); function isTextProps(props) { return typeof props.children === 'string'; } export const Pre = forwardRef((props, ref) => { if (isTextProps(props)) { return ; } return ; }); // Extract dateTime to prevent passing it to the native Text element export const Time = forwardRef(({ dateTime, ...props }, ref) => { return ; }); export const Strong = B; export const Del = S; export const EM = I; const styles = StyleSheet.create({ p: { marginVertical: em(1), }, b: { fontWeight: 'bold', }, q: { fontStyle: 'italic', }, code: { fontFamily: 'Courier', fontWeight: '500', }, pre: { marginVertical: em(1), }, blockQuote: { marginVertical: em(1), }, br: { width: 0, height: em(0.5), }, s: { textDecorationLine: 'line-through', textDecorationStyle: 'solid', }, mark: { backgroundColor: 'yellow', color: 'black', }, i: { fontStyle: 'italic', }, }); //# sourceMappingURL=Text.js.map