jerolimov / react-native-showdown Goto Github PK
View Code? Open in Web Editor NEWReact-native component which renders markdown into a webview!
License: MIT License
React-native component which renders markdown into a webview!
License: MIT License
This is not styling
let css = 'h1,h3{color:"#86ad32"}' return( <Markdown body={ this.props.route.body } pureCSS={css}/> );
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.
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
});
}
}
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.
Can we get a new tagged release so that the latest code is pulled into NPM?
It's only on android : "can't reach html".
Although I didnt ask to fetch a webpage, just gave it some remote markdown content...)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.