From d2556c3cbd855ed987fb27ef9489886f62cd8f4b Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Tue, 29 Apr 2025 07:37:39 -0700 Subject: [PATCH] Update exports field to include the types entry (#50974) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50974 Changelog: [Internal] Reviewed By: huntie Differential Revision: D73835331 fbshipit-source-id: dc5002287408177db527140db967928a7714cf56 --- packages/react-native/package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/package.json b/packages/react-native/package.json index cc4fa62854a..4da1e5441b0 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -32,11 +32,13 @@ ".": { "react-native-strict-api": "./types_generated/index.d.ts", "react-native-strict-api-UNSAFE-ALLOW-SUBPATHS": "./types_generated/index.d.ts", + "types": "./types/index.d.ts", "default": "./index.js" }, "./*": { "react-native-strict-api": null, "react-native-strict-api-UNSAFE-ALLOW-SUBPATHS": "./types_generated/*.d.ts", + "types": "./*.d.ts", "default": "./*.js" }, "./*.js": {