Skip to content

Commit

Permalink
fix(entry): load @metro/internals/modules before main init
Browse files Browse the repository at this point in the history
potentially fix the RNG duplicate native component crash?
  • Loading branch information
pylixonly committed Sep 3, 2024
1 parent fc1ca20 commit 87913ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ async function initializeBunny() {
Object.freeze = Object.seal = Object;

await require("@metro/internals/caches").initMetroCache();
require("@metro/internals/modules");
await require(".").default();
} catch (e) {
const { ClientInfoManager } = require("@lib/api/native/modules");
Expand Down

0 comments on commit 87913ce

Please sign in to comment.