Skip to content

Commit a9ac9f2

Browse files
authored
fix: use noop handler for filesystem prefetch calls on Android (#1268)
1 parent b28d2b2 commit a9ac9f2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.changeset/lemon-paths-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@callstack/repack": patch
3+
---
4+
5+
Use noop handler for local filesystem prefetch calls on Android

packages/repack/android/src/main/java/com/callstack/repack/FileSystemScriptLoader.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@ class FileSystemScriptLoader(private val reactContext: ReactContext, private val
4040
)
4141
}
4242
}
43+
44+
fun prefetch(config: ScriptConfig, promise: Promise) {
45+
// noop since there is no need to prefetch local scripts
46+
promise.resolve(null)
47+
}
4348
}

0 commit comments

Comments
 (0)