Skip to content

Commit 46c410f

Browse files
committed
small fix to the example app. could not select plugins
1 parent 47df8a5 commit 46c410f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Is a 100% compatible CommonMark renderer, a react-native markdown renderer done right. This is __not__
44
a web-view markdown renderer but a renderer that uses native components for all its elements. These components can be overwritten when needed as seen in the examples.
55

6-
76
### Quick links
87
- [Documentation](https://github.com/mientjan/react-native-markdown-renderer/wiki/)
98
- [Examples](https://github.com/mientjan/react-native-markdown-renderer/wiki/Examples)

example/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const renderer = new AstRenderer(
3535

3636
export default class App extends Component {
3737
state = {
38-
view: 0,
38+
view: 5,
3939
};
4040

4141
list = [
@@ -64,7 +64,7 @@ export default class App extends Component {
6464
case 4: {
6565
return <Markdown rules={rules} style={customMarkdownStyle} children={copyAll} />;
6666
}
67-
case 6: {
67+
case 5: {
6868
return <Markdown rules={pluginRules} plugins={[new PluginContainer(markdownItCheckbox, {divWrap: true})]} style={customMarkdownStyle} children={copyAllCheckboxPlugin} />;
6969
}
7070
default: {

0 commit comments

Comments
 (0)