TouchEvent.cpp 818 B

123456789101112131415161718192021222324252627282930313233
  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 "TouchEvent.h"
  8. namespace facebook {
  9. namespace react {
  10. #if RN_DEBUG_STRING_CONVERTIBLE
  11. std::string getDebugName(TouchEvent const &touchEvent) {
  12. return "TouchEvent";
  13. }
  14. std::vector<DebugStringConvertibleObject> getDebugProps(
  15. TouchEvent const &touchEvent,
  16. DebugStringConvertibleOptions options) {
  17. return {
  18. {"touches", getDebugDescription(touchEvent.touches, options)},
  19. {"changedTouches",
  20. getDebugDescription(touchEvent.changedTouches, options)},
  21. {"targetTouches", getDebugDescription(touchEvent.targetTouches, options)},
  22. };
  23. }
  24. #endif
  25. } // namespace react
  26. } // namespace facebook