RCTSettingsPlugins.mm 768 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @generated by an internal plugin build system
  8. */
  9. #ifndef RN_DISABLE_OSS_PLUGIN_HEADER
  10. // OSS-compatibility layer
  11. #import "RCTSettingsPlugins.h"
  12. #import <string>
  13. #import <unordered_map>
  14. Class RCTSettingsClassProvider(const char *name) {
  15. static std::unordered_map<std::string, Class (*)(void)> sCoreModuleClassMap = {
  16. {"SettingsManager", RCTSettingsManagerCls},
  17. };
  18. auto p = sCoreModuleClassMap.find(name);
  19. if (p != sCoreModuleClassMap.end()) {
  20. auto classFunc = p->second;
  21. return classFunc();
  22. }
  23. return nil;
  24. }
  25. #endif // RN_DISABLE_OSS_PLUGIN_HEADER