Skip to content

Commit efc4700

Browse files
committed
clean up of code, removing console.log's etc. #19
1 parent 43be743 commit efc4700

File tree

4 files changed

+6
-55
lines changed

4 files changed

+6
-55
lines changed

example/App.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
import React, { Component } from "react";
2-
import { StyleSheet, Text, View, ScrollView, Picker } from "react-native";
1+
import React, {Component} from "react";
2+
import {Picker, ScrollView, StyleSheet, Text, View} from "react-native";
33
import Markdown, {
4-
AstRenderer,
5-
styles,
6-
renderRules,
7-
getUniqueID,
8-
PluginContainer
4+
AstRenderer, getUniqueID, PluginContainer, renderRules,
5+
styles
96
} from "./react-native-markdown-renderer";
107

118
import markdownItCheckbox from "markdown-it-checkbox";
@@ -55,7 +52,7 @@ export default class App extends Component {
5552
{ description: "custom style sheet" },
5653
{ description: "custom rules" },
5754
{ description: "custom rules & styles" },
58-
{ description: "plugins (checkbox)" }
55+
{ description: "plugins (checkbox)" },
5956
];
6057

6158
getView(value) {
@@ -93,6 +90,7 @@ export default class App extends Component {
9390
/>
9491
);
9592
}
93+
9694
default: {
9795
return <Markdown># Text</Markdown>;
9896
}

src/lib/ImageComponent.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/lib/renderRules.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ const renderRules = {
5151
},
5252
// a
5353
link: (node, children, parent, styles) => {
54-
console.log(node);
5554
return (
5655
<Text
5756
key={node.key}

src/lib/styles.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ export const styles = StyleSheet.create({
135135
},
136136
link: {
137137
textDecorationLine: "underline",
138-
color: 'red'
139138
},
140139
u: {
141140
borderColor: "#000000",

0 commit comments

Comments
 (0)