Skip to content

Commit

Permalink
Fix crash on Android when loading WebView #1218
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdowney committed Sep 17, 2022
1 parent d6f47d6 commit d9abcf4
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/MediaPlayerCarouselChatRoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ export class MediaPlayerCarouselChatRoom extends React.PureComponent<Props> {
accessible={false}
containerStyle={styles.wrapper}
originWhitelist={['*']}
overScrollMode='never'
removeClippedSubviews
source={{ uri: chatIRCURL }}
style={{ backgroundColor: 'transparent' }}
style={{ backgroundColor: 'transparent', opacity: 0.99 }}
/>
</View>
)
Expand Down
4 changes: 3 additions & 1 deletion src/components/WebViewStaticHTML.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ export const WebViewStaticHTML = (props: Props) => {
accessible={false}
containerStyle={styles.view}
originWhitelist={['*']}
overScrollMode='never'
removeClippedSubviews
source={{ html: styledHTML }}
style={{ backgroundColor: 'transparent' }}
style={{ backgroundColor: 'transparent', opacity: 0.99 }}
/>
</View>
)
Expand Down
7 changes: 6 additions & 1 deletion src/screens/V4VProvidersAlbyLoginScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ export class V4VProvidersAlbyLoginScreen extends React.Component<Props, State> {

return (
<View style={styles.wrapper}>
<WebView source={{ uri: url }} />
<WebView
overScrollMode='never'
removeClippedSubviews
source={{ uri: url }}
style={{ opacity: 0.99 }}
/>
</View>
)
}
Expand Down
7 changes: 6 additions & 1 deletion src/screens/WebPageScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ export class WebPageScreen extends React.Component<Props, State> {

return (
<View style={styles.wrapper}>
<WebView source={{ uri }} />
<WebView
overScrollMode='never'
removeClippedSubviews
source={{ uri }}
style={{ opacity: 0.99 }}
/>
</View>
)
}
Expand Down

0 comments on commit d9abcf4

Please sign in to comment.