GithubHelp home page GithubHelp logo

jerolimov / react-native-showdown Goto Github PK

View Code? Open in Web Editor NEW
49.0 4.0 20.0 483 KB

React-native component which renders markdown into a webview!

License: MIT License

JavaScript 8.78% Java 22.15% TypeScript 30.74% Ruby 20.61% Objective-C 17.73%
react-native react-component markdown showdown android ios webview react-native-webview

react-native-showdown's Issues

Dynamic Height

This is a newbie question but how can I style the Markdown element to have dynamic height? It is inside a scrollview and I want all of the content to be visible... I just don't know how long that content is.

Webview in React-Native Deprecated

I couldn’t use this library, because the WebView module is not available anymore in react-native and has been migrated to its own module, react-native-webview. Would be wonderful if this new package could be imported.

New release

Can we get a new tagged release so that the latest code is pulled into NPM?

Android does not have WebView.NavigationType.other

Problem:
On Android there is an error, because Android does not have WebView.NavigationType.other. Error message: "undefined is not an object (evaluating '_reactNative.WebView.NavigationType.other') Android does not have WebView.NavigationType.other there"

Solution:
in the showdown markdownview.js
onNavigationStateChange, should be like:

onNavigationStateChange(navState) {
// Check if user pressed on a link
if(navState.url !== 'about:blank' ) {
LinkingIOS.openURL(navState.url);
this.setState({
navigationStateChange: this.state.navigationStateChange + 1
});
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.