Skip to content

Commit

Permalink
fix(native): drop fsstat for react-native-web (#3023)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett authored Sep 24, 2023
1 parent 5d0a70c commit 948a63a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/fiber/src/native/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ export function polyfills() {
// Unpack assets in Android Release Mode
if (!uri.includes(':')) {
const file = `${fs.cacheDirectory}ExponentAsset-${asset.hash}.${asset.type}`
const stats = await fs.getInfoAsync(file, { size: false })
if (!stats.exists) await fs.copyAsync({ from: uri, to: file })
await fs.copyAsync({ from: uri, to: file })
uri = file
}

Expand Down

0 comments on commit 948a63a

Please sign in to comment.