/// <summary> /// Instantiates the <see cref="ReactContextNativeModuleBase"/>. /// </summary> /// <param name="reactContext">The React context.</param> /// <param name="delegateFactory">The React method delegate factory.</param> /// <param name="actionQueue">The action queue.</param> protected ReactContextNativeModuleBase(ReactContext reactContext, IReactDelegateFactory delegateFactory, IActionQueue actionQueue) : base(delegateFactory, actionQueue) { if (reactContext == null) { throw new ArgumentNullException(nameof(reactContext)); } Context = reactContext; }
/// <summary> /// Instantiates a <see cref="NativeModuleBase"/>. /// </summary> /// <param name="delegateFactory"> /// Factory responsible for creating delegates for method invocations. /// </param> protected NativeModuleBase(IReactDelegateFactory delegateFactory) { _delegateFactory = delegateFactory; _methods = InitializeMethods(); }
public PerfNativeModule(IReactDelegateFactory delegateFactory) : base(delegateFactory) { }