mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
925b15351f
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/34753 This Diff introduce a the capability to parse custom NativeStates in Flow. To achieve this I also had to define the CodegenSchema. The parsing follows the exact same rules as props, as initial heuristic. This should allow enough customization for the developers who needs a custom state. There is only a case I was not able to make it work that is STATE_ALIASED_LOCALLY, from the fixtures. I don't know how diffuse it is and I think we can live with some workarounds for the time being. This diff also adds tests for the custom Native State Flow Parser. ## Changelog [General][Added] - Implement custom Native State parsing in Flow Reviewed By: cortinico Differential Revision: D39686251 fbshipit-source-id: 446997a39b33b7e9351d5ba12cecaeff33df4d16