From 8f71dd724df97b88e6b1b09f70fb9d308895dc76 Mon Sep 17 00:00:00 2001 From: Daniel Williams Date: Sat, 26 Oct 2024 12:29:04 +0100 Subject: [PATCH] fix --- packages/react-native/scripts/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/generate.js b/packages/react-native/scripts/generate.js index 9271da0bd3..c750b91bc3 100644 --- a/packages/react-native/scripts/generate.js +++ b/packages/react-native/scripts/generate.js @@ -50,7 +50,7 @@ function generate({ configPath, absolute = false, useJs = false }) { let registerAddons = ''; for (const addon of main.addons) { - const registerPath = resolveAddonFile(addon, 'register', ['js', 'mjs', 'ts', 'tsx']); + const registerPath = resolveAddonFile(addon, 'register', ['js', 'mjs', 'jsx', 'ts', 'tsx']); if (registerPath) { registerAddons += `import "${registerPath}";\n`;