function register(name, callback) {
  invariant(
    !viewConfigCallbacks.has(name),
    "Tried to register two views with the same name %s",
    name
  );
  viewConfigCallbacks.set(name, callback);
  return name;
}
Registers a native view/component by name.
A callback is provided to load the view config from UIManager.
The callback is deferred until the view is actually rendered.
This is done to avoid causing Prepack deopts.