mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
91205d2ba4
Summary: This diff: - Moves the NativeModule flow types to the bottom of `CodegenSchema.js`. - Re-organizes the NativeModuel flow type declarations based on when they're first used. Essentially, we start off by declaring a giant 'NativeModuleShape' type, which uses smaller undeclared types. Then we declare all the undeclared children of `NativeModuleShape`, and on and on. This way, you know where to start reading the types, and you can easily tell how every type relates to every other type. Changelog: [Internal] Differential Revision: D22828840 fbshipit-source-id: 5b4b9466a41b9bcb92a1de159bcbc12e4dc01df3