Skip to content

Commit

Permalink
chore: keep animation on iOS if there is a large WebView
Browse files Browse the repository at this point in the history
  • Loading branch information
KestasVenslauskas committed Oct 11, 2024
1 parent 456658c commit a8a2427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/safeWebView/SafeAutoHeightWebView.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useNavigation} from '@react-navigation/native';
import {StackNavigationProp} from '@react-navigation/stack';
import React, {forwardRef, useCallback, useRef} from 'react';
import {Linking, useWindowDimensions} from 'react-native';
import {Linking, Platform, useWindowDimensions} from 'react-native';
import {StyleSheet, View} from 'react-native';
import WebView, {AutoHeightWebViewProps, SizeUpdate} from 'react-native-autoheight-webview';
import {type ShouldStartLoadRequest} from 'react-native-webview/src/WebViewTypes';
Expand Down Expand Up @@ -53,7 +53,7 @@ const SafeAutoHeightWebView: React.FC<React.PropsWithChildren<Props>> = forwardR
<WebView
ref={ref}
originWhitelist={['*']}
onSizeUpdated={onSizeUpdate}
onSizeUpdated={Platform.OS === 'android' ? onSizeUpdate : undefined}
domStorageEnabled={true}
javaScriptEnabled={true}
automaticallyAdjustContentInsets={false}
Expand Down

0 comments on commit a8a2427

Please sign in to comment.