/// <summary>
        /// Sets a JavaScript responder for a view.
        /// </summary>
        /// <param name="reactTag">The view ID.</param>
        /// <param name="blockNativeResponder">
        /// Flag to signal if the native responder should be blocked.
        /// </param>
        public void SetJavaScriptResponder(int reactTag, bool blockNativeResponder)
        {
            AssertViewExists(reactTag);
            var node = _shadowNodeRegistry.GetNode(reactTag);

            while (node.IsVirtual || node.IsLayoutOnly)
            {
                node = node.Parent;
            }

            _operationsQueue.EnqueueSetJavaScriptResponder(node.ReactTag, reactTag, blockNativeResponder);
        }