ReactNativeConfig.cpp 958 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include "ReactNativeConfig.h"
  8. namespace facebook {
  9. namespace react {
  10. /**
  11. * ReactNative configuration as provided by the hosting app.
  12. * Provide a sub-class implementation to allow app specific customization.
  13. */
  14. ReactNativeConfig::ReactNativeConfig() {}
  15. ReactNativeConfig::~ReactNativeConfig() {}
  16. EmptyReactNativeConfig::EmptyReactNativeConfig() {}
  17. bool EmptyReactNativeConfig::getBool(const std::string &param) const {
  18. return false;
  19. }
  20. std::string EmptyReactNativeConfig::getString(const std::string &param) const {
  21. return "";
  22. }
  23. int64_t EmptyReactNativeConfig::getInt64(const std::string &param) const {
  24. return 0;
  25. }
  26. double EmptyReactNativeConfig::getDouble(const std::string &param) const {
  27. return 0.0;
  28. }
  29. } // namespace react
  30. } // namespace facebook