From a997c5e7e775298324238112f53a91eb3cdd01b5 Mon Sep 17 00:00:00 2001 From: Tom Pickard Date: Sat, 6 Jun 2020 19:34:16 +0100 Subject: [PATCH] export fitimage --- package.json | 2 +- src/index.d.ts | 2 +- src/index.js | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9e81cd2..431d399 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-markdown-display", - "version": "6.1.2", + "version": "6.1.3", "description": "Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer), originally created by Mient-jan Stelling as react-native-markdown-renderer", "main": "src/index.js", "types": "src/index.d.ts", diff --git a/src/index.d.ts b/src/index.d.ts index ad71ddb..7be007f 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -16,7 +16,7 @@ export type RenderFunction = ( styles: any, styleObj?: any, // must have this so that we can have fixed overrides with more arguments - ...args: any, + ...args: any ) => ReactNode; export type RenderLinkFunction = ( diff --git a/src/index.js b/src/index.js index cc969db..2bd1021 100644 --- a/src/index.js +++ b/src/index.js @@ -17,6 +17,7 @@ import MarkdownIt from 'markdown-it'; import removeTextStyleProps from './lib/util/removeTextStyleProps'; import {styles} from './lib/styles'; import {stringToTokens} from './lib/util/stringToTokens'; +import FitImage from 'react-native-fit-image'; export { getUniqueID, @@ -30,6 +31,7 @@ export { MarkdownIt, styles, removeTextStyleProps, + FitImage, }; // we use StyleSheet.flatten here to make sure we have an object, in case someone