Skip to content

WebView Crashes app when you zoom fully in or out  #13374

@aidan-doherty

Description

@aidan-doherty

Description

I tried using the Webview on when i zoom out/in on any site fully it crashes the app every time. I have tested on other websites and i cant get it to happen on sites that don't allowing zooming.

Reproduction Steps and Sample Code

Here is an example of the code being rendered.

return (
            <View style={styles.container}>
             <WebView
                    source={{ uri: 'http://www.google.com/' }}
                    style={styles.body} startInLoadingState
                >
    </WebView>
</View>

);

Solution

Stop the app crashing when the WebView is fully pinched to zoom in or out.

Additional Information

React Native version: 0.42.0
Platform: Android (Not tested on IOS)
Development Operating System: Linux
Dev tools: Android studio 2.2.3 and Android version is targeted for 6.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions