fix: prevent overflow bouncing on desktop and mobile (#1743)

* fix: prevent overflow bouncing on desktop and mobile

* fix: add black bg to webview for debugging purposes
This commit is contained in:
Mo
2022-10-05 08:19:55 -05:00
committed by GitHub
parent de0f91c9e3
commit 6bd5534f74
4 changed files with 6 additions and 7 deletions

View File

@@ -195,13 +195,12 @@ const MobileWebAppContents = ({ destroyAndReload }: { destroyAndReload: () => vo
webViewRef.current?.postMessage(JSON.stringify({ messageId, returnValue, messageType: 'reply' }))
}
/* eslint-disable @typescript-eslint/no-empty-function */
return (
<WebView
ref={webViewRef}
source={{ uri: sourceUri }}
style={{ backgroundColor: 'black' }}
originWhitelist={['*']}
onLoad={() => {}}
onError={(err) => console.error('An error has occurred', err)}
onHttpError={() => console.error('An HTTP error occurred')}
onMessage={onMessage}
@@ -211,5 +210,4 @@ const MobileWebAppContents = ({ destroyAndReload }: { destroyAndReload: () => vo
bounces={false}
/>
)
/* eslint-enable @typescript-eslint/no-empty-function */
}