From 8167f4016370b26425cc61ba2386b0ff32439334 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Thu, 29 Oct 2015 09:00:33 -0700 Subject: [PATCH] Document that WebView is iOS-only until we open source the Android implementation Summary: The absence of docs can be confusing: https://twitter.com/40_thieves/status/659500246632939520 public Reviewed By: davidaurelio Differential Revision: D2595809 fb-gh-sync-id: b741263782ad579bb40e94a383992dca3a6e8040 --- Libraries/Components/WebView/WebView.android.js | 4 ++++ Libraries/Components/WebView/WebView.ios.js | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/Libraries/Components/WebView/WebView.android.js b/Libraries/Components/WebView/WebView.android.js index 274d76728..7975653a3 100644 --- a/Libraries/Components/WebView/WebView.android.js +++ b/Libraries/Components/WebView/WebView.android.js @@ -31,6 +31,10 @@ var WebViewState = keyMirror({ ERROR: null, }); +/** + * Note that WebView is only supported on iOS for now, + * see https://facebook.github.io/react-native/docs/known-issues.html + */ var WebView = React.createClass({ propTypes: { diff --git a/Libraries/Components/WebView/WebView.ios.js b/Libraries/Components/WebView/WebView.ios.js index a3d457bfd..6c7f5484d 100644 --- a/Libraries/Components/WebView/WebView.ios.js +++ b/Libraries/Components/WebView/WebView.ios.js @@ -75,6 +75,12 @@ var defaultRenderError = (errorDomain, errorCode, errorDesc) => ( ); +/** + * Renders a native WebView. + * + * Note that WebView is only supported on iOS for now, + * see https://facebook.github.io/react-native/docs/known-issues.html + */ var WebView = React.createClass({ statics: { JSNavigationScheme: JSNavigationScheme,