-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump(*): bump version (@1.0.60-rc.0)
- Add mailto support - Add link support - @linonetwo - Add listItemText support - @chandlervdw - Add video support - Add GIF support - Add url support
- Loading branch information
1 parent
330a1dd
commit 4f3363b
Showing
4 changed files
with
41 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,19 @@ import Markdown from 'react-native-simple-markdown' | |
const MyAwesomeApp = () => { | ||
return ( | ||
<Markdown styles={styles}> | ||
#Who is the best dev in town? | ||
#Markdown in react-native is so cool! | ||
{'\n\n'} | ||
Probably **the one** reading this lines 😏… | ||
You can **emphasize** what you want, or just _suggest it_ 😏… | ||
{'\n\n'} | ||
You can even [link your website](http://charlesmangwa.surge.sh) or if you prefer: [email sombedy](mailto:[email protected]) | ||
{'\n\n'} | ||
Spice it up with some GIF 💃: | ||
{'\n\n'} | ||
![Some GIF](https://media.giphy.com/media/dkGhBWE3SyzXW/giphy.gif) | ||
{'\n\n'} | ||
And even add a cool video 😎! | ||
{'\n\n'} | ||
[![A cool video](https://img.youtube.com/vi/dQw4w9WgXcQ/0.jpg)](http://www.youtube.com/watch?v=dQw4w9WgXcQ) | ||
</Markdown> | ||
) | ||
} | ||
|
@@ -75,7 +85,10 @@ Example: | |
- `hr` (`<View>`) | ||
- `heading` (`<Text>`) - Also `heading1` through `heading6` | ||
- `inlineCode` (`<Text>`) | ||
- `image` (`<Image>`) - Supports `.jpg`, `.png`, `.gif`, etc | ||
- `link` (`Text`) | ||
- `list` (`<View>`) - Also `listItem` (`<View>`), `listItemBullet` (`<Text>`), `listItemNumber` (`<Text>`) and `listItemText` (`<Text>`) | ||
- `mailTo` (`Text`) | ||
- `paragraph` (`<View>`) | ||
- `plainText` (`<Text>`) - Use for styling text without any associated styles | ||
- `strong` (`<Text>`) | ||
|
@@ -88,7 +101,8 @@ Example: | |
- `text` (`<Text>`) - Inherited by all text based elements | ||
- `u` (`<View>`) | ||
- `url` (`<Text>`) | ||
- `view` (`<View>`) - This is the container `View` that the Markdown is rendered in. | ||
- `video` (`<Image>`) | ||
- `view` (`<View>`) - This is the `View` container where the Markdown is render. | ||
##### WIP | ||
|
@@ -97,9 +111,6 @@ _Most of these elements can be used, but I'm still working on some improvements. | |
- `autolink` (`<Text>`) | ||
- `blockQuote` (`<Text>`) | ||
- `codeBlock` (`<View>`) | ||
- `image` (`<Image>`) - Usable but need to herit image size | ||
- `link` (`<Text>`) | ||
- `mailto` (`<Text>`) | ||
- `newline` (`<Text>`) | ||
## Credits | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,8 @@ | |
"type": "git", | ||
"url": "https://github.com/CharlesMangwa/react-native-simple-markdown.git" | ||
}, | ||
"version": "1.0.54", | ||
"description": "A component for rendering Markdown in React Native with native components.", | ||
"version": "1.0.60-rc.0", | ||
"description": "Render Markdown in React Native with native components (iOS & Android)", | ||
"main": "index.js", | ||
"author": "Charles Mangwa <[email protected]> (http://charlesmangwa.surge.sh)", | ||
"dependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters