diff --git a/package.json b/package.json index 654a270..917a58a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type": "git", "url": "https://github.com/CharlesMangwa/react-native-simple-markdown.git" }, - "version": "1.0.60-rc.0", + "version": "1.0.60-rc.1", "description": "Render Markdown in React Native with native components (iOS & Android)", "main": "index.js", "author": "Charles Mangwa (http://charlesmangwa.surge.sh)", diff --git a/rules.js b/rules.js index 6e8b764..832dec9 100644 --- a/rules.js +++ b/rules.js @@ -76,6 +76,7 @@ export default (styles) => ({ react: (node, output, state) => { return createElement(Image, { key: state.key, + resizeMode: 'contain', source: { uri: node.target }, style: node.target.match(/youtube/) ? styles.video : styles.image }) diff --git a/styles.js b/styles.js index a0a442d..be2e475 100644 --- a/styles.js +++ b/styles.js @@ -38,8 +38,8 @@ const styles = { height: 1, }, image: { - width: 300, - height: 300, + width: 320, + height: 320, }, inlineCode: { backgroundColor: '#eeeeee',