mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 06:04:15 +00:00
Make ViewManagerRegistry class public
Summary: public I need to construct this class outside of the uimanager package, and this requires the class (and its constructor) to be public. Reviewed By: astreet Differential Revision: D2554847 fb-gh-sync-id: a73c3236b91a1ed7074521e19b72e1994804cced
This commit is contained in:
parent
00046bc832
commit
baa97b2e9f
@ -17,7 +17,7 @@ import java.util.Map;
|
||||
* Class that stores the mapping between native view name used in JS and the corresponding instance
|
||||
* of {@link ViewManager}.
|
||||
*/
|
||||
/* package */ class ViewManagerRegistry {
|
||||
public class ViewManagerRegistry {
|
||||
|
||||
private final Map<String, ViewManager> mViewManagers = new HashMap<>();
|
||||
|
||||
@ -27,7 +27,7 @@ import java.util.Map;
|
||||
}
|
||||
}
|
||||
|
||||
/* package */ ViewManager get(String className) {
|
||||
public ViewManager get(String className) {
|
||||
ViewManager viewManager = mViewManagers.get(className);
|
||||
if (viewManager != null) {
|
||||
return viewManager;
|
||||
|
Loading…
x
Reference in New Issue
Block a user