Coder Social home page Coder Social logo

react-native-webview-autoheight's People

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-webview-autoheight's Issues

Error when trying to set html source

<MyWebView
  startInLoadingState={true}
  source={{html: this.contentHtml(content)}}
/>
[Unhandled promise rejection: Error: Unable to open URL: ReactABI32_0_0-js-navigation://postMessage?195]

Stack trace:
  node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:146:41 in createErrorFromErrorData
  node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:95:55 in <unknown>
  node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:397:4 in __invokeCallback
  node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:127:28 in <unknown>
  node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:297:10 in __guard
  node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:126:17 in invokeCallbackAndReturnFlushedQueue

Not compatible with react-navigation?

when Using <!DOCTYPE html> the height is not calculated correctly

If i am providing the source Html in the form of

<html id="htmlContent">
        <p>
            <span>{content} </span> 
        </p>
    </html>

the Webview component is able to render the content with correct height.

but if the source Html is

<!DOCTYPE html>
<html id="htmlContent">
        <p>
            <span>{content} </span> 
        </p>
    </html>

the Height is not calulated correctly and while rendered content is clipped in iOS only.

In addition, i m also using Katex to render the content to mathematical symbols.
So if I m not using <!DOCTYPE html> then the rendering fraction lines are not rendered properly on both iOS and Android.

is there any fix for iOS webview which works fines even when the <!DOCTYPE html> is used.

any need on this issue would be grateful.

Can't call .stopLoading() for opening links on HTML Page

I want to open links externally,
so I was using

ref={(ref) => { this.webview = ref; }}
onNavigationStateChange={(event) => {
    this.webview.stopLoading();
    Linking.openURL(event.url);
}}

But .stopLoading() doesn't work, since real WebView component is nested in this one.
Can someone suggest something, so that I can open links externally?

[Android] Don't work

Same as the issue #2, when I use startInLoadingState loader doesn't disappear !

RN : 0.39.0
react-native-webview-autoheight : 1.0.2 & 1.0.4
Android : 7.1 (emulator)

License?

Hey, I like the way you handle this issue, but would like to know what license you're publishing it under?

Thanks!

extra space at bottom

Used in ListView, first couple was ok, when list get longer, some views get extra white space at bottom.

App becomes slow when library added

App becomes slow in the screens where this library is added. What can be done to increase performance and decrease the load on the device?

Some Issue about autoheight

I'm new to react native. I like this webview. My html source contain image. The webview height is return when my html source image is completely loaded. Sometime if connection problem the webview is not return. So, I'm trying to use default height. It look ok. But the same problem when connection is a little slow the webview height is not change. How to slove this issue?

AutoHeight issue when CSS is applied

I am facing autoheight issue when I apply a huge CSS to my HTML content. For Example, when I append bootstrap CSS, the height calculation fails and only a height of approx 20px gets applied.
Below is the code :

<MyWebView width={responsiveWidth(65)} startInLoadingState={true} source={{html:CSS + htmlData, baseUrl: 'http://www.example.com'}} />

This code will work fine if my CSS is short.

Any help on this would be appreciated.

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.