Skip to content

Commit

Permalink
feat(image): add resizeMode prop
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesMangwa committed Oct 10, 2016
1 parent f475fda commit 5b2833e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <charlesmangwa@gmail.com> (http://charlesmangwa.surge.sh)",
Expand Down
1 change: 1 addition & 0 deletions rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down
4 changes: 2 additions & 2 deletions styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const styles = {
height: 1,
},
image: {
width: 300,
height: 300,
width: 320,
height: 320,
},
inlineCode: {
backgroundColor: '#eeeeee',
Expand Down

0 comments on commit 5b2833e

Please sign in to comment.