GithubHelp home page GithubHelp logo

almost / react-native-html-webview Goto Github PK

View Code? Open in Web Editor NEW
104.0 104.0 20.0 26 KB

Display HTML in a UIWebView, optionally sanitizing it first

License: MIT License

Objective-C 58.70% JavaScript 41.30%

react-native-html-webview's People

Contributors

almost avatar debian789 avatar liuda101 avatar toblux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-html-webview's Issues

Display image from local system

Is there any way I can display an image from the local system inside of the webview? Basically I want to download some images from my server and display them on the webview, mainly to support offline mode and also performance.

Invail directory

After I installed it , it said that 'Invail directory'

here is the code:
import HtmlView from 'react-native-html-webview';

Couldn't get it working with my project

Here are some things I had to do:

  1. Under Search Paths, I added: $(SRCROOT)/../react-native/React and recursive to get it to build.
  2. I added RCT_EXPORT_MODULE(); to AIBHTMLWebViewManager.m because the error message in the simulator said it was missing.

After that it looks like it's working great, I'm just wondering if your config or mine is somehow different.

Android support?

Hi,

do you have any plan about Android support with this library?

react-native currently doesn't have official WebView, so it should be interesting to have the same component in both platforms.

Thanks.

Width of webview?

Hi there,

Is there a way of setting the width of the embedded webview? Basically it seems to always want to be 100%, so if my container that it sits in takes up say 70% because it either has a set width or padding, the webview shoots off the side of the app. The only way to contain it seems to be setting a width in the body tag of the HTML which clearly doesn't allow for mobile device width adjustments / calculations etc.

Hope this makes sense.

Vince

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.