mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
- 新增 sentry-react-native、react-native-video、react-native-static-server、expo-network、expo-intent-launcher、expo-clipboard、expo-file-system 的 web shim - 重写 react-native-pager-view shim,通过 useImperativeHandle 暴露 setPage 方法 - 修复 sentry-react-native shim 缺少 ErrorBoundary 导致的渲染崩溃 - 在 _layout.tsx 中加载 Ionicons 字体,修复 web 端字体 404 - 更新 metro.config.js 中 sentry shim 路径为 .tsx
15 lines
772 B
TypeScript
15 lines
772 B
TypeScript
/** Web shim for expo-file-system */
|
|
export const documentDirectory = '';
|
|
export const cacheDirectory = '';
|
|
export async function getInfoAsync(_uri: string) { return { exists: false, isDirectory: false }; }
|
|
export async function readAsStringAsync(_uri: string) { return ''; }
|
|
export async function writeAsStringAsync(_uri: string, _contents: string) {}
|
|
export async function deleteAsync(_uri: string) {}
|
|
export async function moveAsync(_opts: any) {}
|
|
export async function copyAsync(_opts: any) {}
|
|
export async function makeDirectoryAsync(_uri: string) {}
|
|
export async function getContentUriAsync(_uri: string) { return ''; }
|
|
export function createDownloadResumable(_url: string, _fileUri: string, _opts?: any, _cb?: any) {
|
|
return { downloadAsync: async () => ({}) };
|
|
}
|