Skip to content

Commit c9f2055

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Fix generated types in @react-native/virtualized-lists being used without opt-in (facebook#51246)
Summary: Pull Request resolved: facebook#51246 Changelog: [General][Fixed] Fix generated types in react-native/virtualized-lists being used without opt-in D71969602 introduces `exports` field to `package.json` files in `react-native` and `virtualized-lists`. In that diff, the `types` in `virtualized-lists` by default pointed to the new generated types without requiring the opt-in. This fixes that by requiring the opt-in before using the generated types. Reviewed By: huntie Differential Revision: D74573321 fbshipit-source-id: fe05b0204a7200c1c91aac2614aa786bbbced2a5
1 parent 25abb0a commit c9f2055

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/virtualized-lists/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
},
2222
"exports": {
2323
".": {
24-
"types": "./types_generated/index.d.ts",
24+
"react-native-strict-api": "./types_generated/index.d.ts",
25+
"types": "./index.d.ts",
2526
"default": "./index.js"
2627
},
2728
"./*": {

0 commit comments

Comments
 (0)