createConstants

open fun createConstants(viewManagers: List<ViewManager>, @Nullable allBubblingEventTypes: Map<String, Any>, @Nullable allDirectEventTypes: Map<String, Any>): Map<String, Any>

Generates map of constants that is then exposed by UIManagerModule. Provided list of {@param viewManagers} is then used to populate content of those predefined fields using getExportedCustomBubblingEventTypeConstants and getExportedCustomDirectEventTypeConstants respectively. Each view manager is in addition allowed to expose viewmanager-specific constants that are placed under the key that corresponds to the view manager's name (see getName). Constants are merged into the map of UIManagerModule base constants that is stored in . TODO(6845124): Create a test for this