Skip to content

Commit

Permalink
clean up of code, removing console.log's etc. #19
Browse files Browse the repository at this point in the history
  • Loading branch information
mientjan committed Jan 29, 2018
1 parent 43be743 commit efc4700
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 55 deletions.
14 changes: 6 additions & 8 deletions example/App.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import React, { Component } from "react";
import { StyleSheet, Text, View, ScrollView, Picker } from "react-native";
import React, {Component} from "react";
import {Picker, ScrollView, StyleSheet, Text, View} from "react-native";
import Markdown, {
AstRenderer,
styles,
renderRules,
getUniqueID,
PluginContainer
AstRenderer, getUniqueID, PluginContainer, renderRules,
styles
} from "./react-native-markdown-renderer";

import markdownItCheckbox from "markdown-it-checkbox";
Expand Down Expand Up @@ -55,7 +52,7 @@ export default class App extends Component {
{ description: "custom style sheet" },
{ description: "custom rules" },
{ description: "custom rules & styles" },
{ description: "plugins (checkbox)" }
{ description: "plugins (checkbox)" },
];

getView(value) {
Expand Down Expand Up @@ -93,6 +90,7 @@ export default class App extends Component {
/>
);
}

default: {
return <Markdown># Text</Markdown>;
}
Expand Down
45 changes: 0 additions & 45 deletions src/lib/ImageComponent.js

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/renderRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const renderRules = {
},
// a
link: (node, children, parent, styles) => {
console.log(node);
return (
<Text
key={node.key}
Expand Down
1 change: 0 additions & 1 deletion src/lib/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ export const styles = StyleSheet.create({
},
link: {
textDecorationLine: "underline",
color: 'red'
},
u: {
borderColor: "#000000",
Expand Down

0 comments on commit efc4700

Please sign in to comment.