RCTJSInvokerModule.h 516 B

12345678910111213141516
  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. /**
  8. * This protocol should be adopted when a turbo module needs to directly call into Javascript.
  9. * In bridge-less React Native, it is a replacement for [_bridge enqueueJSCall:].
  10. */
  11. @protocol RCTJSInvokerModule
  12. @property (nonatomic, copy, nonnull) void (^invokeJS)(NSString *module, NSString *method, NSArray *args);
  13. @end