iou90 / react-native-autoheight-webview

An auto height webview for React Native
ISC License
492 stars 162 forks source link

Auto Height Mess Up/Broken/auto resized in some web [with example] #218

Closed putuoka closed 2 years ago

putuoka commented 2 years ago

Bug description: Height is resized to very small size or sometimes very big unlimited size To Reproduce: Test below Url

Source (static HTML or url): url: https://codepen.io/7s8ags87ag/full/NWwEKLg

<AutoHeightWebView
                style={{ width: Dimensions.get('window').width }}
                scrollEnabled={true}
                viewportContent={'width=device-width, user-scalable=no'}
                onSizeUpdated={(size) => {
                    console.log(size);
                }}
                source={{ uri: 'https://codepen.io/7s8ags87ag/full/NWwEKLg' }}
            />

Expected behavior: just like mobile browser when using tools inspect element in browser Screenshots/Videos:

Environment:

iou90 commented 2 years ago

'https://codepen.io/7s8ags87ag/full/NWwEKLg' is 404, please provide a valid uri.