mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-06 09:31:11 +08:00
Cleanup: Prefer React.Element over React$?Element
Reviewed By: vjeux Differential Revision: D4013049 fbshipit-source-id: 18a447fdbc584418d6a51770363bcd221e7fb7dc
This commit is contained in:
committed by
Facebook Github Bot
parent
beca25083a
commit
e8198aed8d
@@ -337,15 +337,15 @@ exports.description = 'Base component to display web content';
|
||||
exports.examples = [
|
||||
{
|
||||
title: 'Simple Browser',
|
||||
render(): ReactElement<any> { return <WebViewExample />; }
|
||||
render(): React.Element<any> { return <WebViewExample />; }
|
||||
},
|
||||
{
|
||||
title: 'Scale Page to Fit',
|
||||
render(): ReactElement<any> { return <ScaledWebView/>; }
|
||||
render(): React.Element<any> { return <ScaledWebView/>; }
|
||||
},
|
||||
{
|
||||
title: 'Bundled HTML',
|
||||
render(): ReactElement<any> {
|
||||
render(): React.Element<any> {
|
||||
return (
|
||||
<WebView
|
||||
style={{
|
||||
@@ -360,7 +360,7 @@ exports.examples = [
|
||||
},
|
||||
{
|
||||
title: 'Static HTML',
|
||||
render(): ReactElement<any> {
|
||||
render(): React.Element<any> {
|
||||
return (
|
||||
<WebView
|
||||
style={{
|
||||
@@ -375,7 +375,7 @@ exports.examples = [
|
||||
},
|
||||
{
|
||||
title: 'POST Test',
|
||||
render(): ReactElement<any> {
|
||||
render(): React.Element<any> {
|
||||
return (
|
||||
<WebView
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user