From 58720d608e1c67987c6689de2f6867e5ce90a64e Mon Sep 17 00:00:00 2001 From: Patrick Finnigan Date: Mon, 25 Jul 2016 16:19:15 -0700 Subject: [PATCH] fix doc for React Native mountComponent (#7313) (cherry picked from commit 85dcbf83c5c0c9165dfe7fc440faf9e019ba8642) --- src/renderers/dom/shared/ReactDOMComponent.js | 2 +- src/renderers/native/ReactNativeBaseComponent.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/renderers/dom/shared/ReactDOMComponent.js b/src/renderers/dom/shared/ReactDOMComponent.js index 8f6cde4507..afe0f3f179 100644 --- a/src/renderers/dom/shared/ReactDOMComponent.js +++ b/src/renderers/dom/shared/ReactDOMComponent.js @@ -513,7 +513,7 @@ ReactDOMComponent.Mixin = { * * @internal * @param {ReactReconcileTransaction|ReactServerRenderingTransaction} transaction - * @param {?ReactDOMComponent} the containing DOM component instance + * @param {?ReactDOMComponent} the parent component instance * @param {?object} info about the host container * @param {object} context * @return {string} The computed markup. diff --git a/src/renderers/native/ReactNativeBaseComponent.js b/src/renderers/native/ReactNativeBaseComponent.js index 20dfaa542b..0a0c8435b7 100644 --- a/src/renderers/native/ReactNativeBaseComponent.js +++ b/src/renderers/native/ReactNativeBaseComponent.js @@ -171,8 +171,10 @@ ReactNativeBaseComponent.Mixin = { }, /** - * @param {string} rootID Root ID of this subtree. - * @param {Transaction} transaction For creating/updating. + * @param {ReactNativeReconcileTransaction} transaction + * @param {?ReactNativeBaseComponent} the parent component instance + * @param {?object} info about the host container + * @param {object} context * @return {string} Unique iOS view tag. */ mountComponent: function(transaction, hostParent, hostContainerInfo, context) {