mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a7664dbaf1
Summary: I'm not very confident with this part, but actually in existing codegen we wrap param into another object marked as `NullableTypeAnnotion`. It makes logic a little more complicated. Also it allows for multiple `?` before type which is useless in code generation as well as nullable types inside arrays which also does not have impact on a final code generation. I suggest adding `nullable` field into param which covers all existing cases (and probably all cases needed). Reviewed By: TheSavior Differential Revision: D16121609 fbshipit-source-id: 6e086d4d26bbd0aab3015ec7ecae106ebbaa5a2c