LegacyViewManagerInteropViewEventEmitter.h 821 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. #pragma once
  8. #include <memory>
  9. #include <folly/dynamic.h>
  10. #include <react/components/view/ViewEventEmitter.h>
  11. #include <react/core/EventEmitter.h>
  12. namespace facebook {
  13. namespace react {
  14. class LegacyViewManagerInteropViewEventEmitter;
  15. using SharedLegacyViewManagerInteropViewEventEmitter =
  16. std::shared_ptr<const LegacyViewManagerInteropViewEventEmitter>;
  17. class LegacyViewManagerInteropViewEventEmitter : public ViewEventEmitter {
  18. public:
  19. using ViewEventEmitter::ViewEventEmitter;
  20. void dispatchEvent(std::string const &type, folly::dynamic const &payload)
  21. const;
  22. };
  23. } // namespace react
  24. } // namespace facebook