fix some type errors

This commit is contained in:
tapframe 2025-11-10 17:32:13 +05:30
parent 1ca4e275de
commit 41081118ef
3 changed files with 7 additions and 4 deletions

View file

@ -3108,7 +3108,6 @@ const AndroidVideoPlayer: React.FC = () => {
onClose={handleClose}
width={screenDimensions.width}
height={screenDimensions.height}
useFastImage={false}
/>
<Animated.View

View file

@ -2489,7 +2489,6 @@ const KSPlayerCore: React.FC = () => {
onClose={handleClose}
width={shouldUseFullscreen ? effectiveDimensions.width : screenDimensions.width}
height={shouldUseFullscreen ? effectiveDimensions.height : screenDimensions.height}
useFastImage={true}
/>
)}

View file

@ -28,6 +28,7 @@ import { useTraktContext } from '../contexts/TraktContext';
import { useTheme } from '../contexts/ThemeContext';
import { catalogService } from '../services/catalogService';
import { fetchTotalDownloads } from '../services/githubReleaseService';
import * as WebBrowser from 'expo-web-browser';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import * as Sentry from '@sentry/react-native';
import { getDisplayedAppVersion } from '../utils/version';
@ -913,7 +914,9 @@ const SettingsScreen: React.FC = () => {
<TouchableOpacity
style={[styles.discordButton, { backgroundColor: 'transparent', paddingVertical: 0, paddingHorizontal: 0 }]}
onPress={() => Linking.openURL('https://ko-fi.com/tapframe')}
onPress={() => WebBrowser.openBrowserAsync('https://ko-fi.com/tapframe', {
presentationStyle: Platform.OS === 'ios' ? WebBrowser.WebBrowserPresentationStyle.FORM_SHEET : WebBrowser.WebBrowserPresentationStyle.FORM_SHEET
})}
activeOpacity={0.7}
>
<FastImage
@ -1011,7 +1014,9 @@ const SettingsScreen: React.FC = () => {
<TouchableOpacity
style={[styles.discordButton, { backgroundColor: 'transparent', paddingVertical: 0, paddingHorizontal: 0 }]}
onPress={() => Linking.openURL('https://ko-fi.com/tapframe')}
onPress={() => WebBrowser.openBrowserAsync('https://ko-fi.com/tapframe', {
presentationStyle: Platform.OS === 'ios' ? WebBrowser.WebBrowserPresentationStyle.FORM_SHEET : WebBrowser.WebBrowserPresentationStyle.FORM_SHEET
})}
activeOpacity={0.7}
>
<FastImage