Make REACT_CLASS public so we can use a provider

Summary: Make REACT_CLASS a public property on ReactSwitchManager (similar to our other UI managers) so we can more easily lazily load this class.

Reviewed By: mdvacca

Differential Revision: D14028452

fbshipit-source-id: 84aebd4e2e1e0039957d8c12490022386aab7847
This commit is contained in:
Emily Janzer 2019-02-11 14:12:55 -08:00 committed by Facebook Github Bot
parent f83281e2ce
commit b8246ac89a

View File

@ -32,7 +32,7 @@ import javax.annotation.Nullable;
*/
public class ReactSwitchManager extends SimpleViewManager<ReactSwitch> {
private static final String REACT_CLASS = "AndroidSwitch";
public static final String REACT_CLASS = "AndroidSwitch";
static class ReactSwitchShadowNode extends LayoutShadowNode implements
YogaMeasureFunction {