mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Replace React$Node with React.Node
Summary: Changelog: [Internal] Reviewed By: gkz Differential Revision: D67529040 fbshipit-source-id: 09221c6f866628bbf9174293124e650b7fffa967
This commit is contained in:
committed by
Facebook GitHub Bot
parent
953889da51
commit
4c1dd906b0
@@ -182,21 +182,21 @@ exports.examples = [
|
||||
{
|
||||
title: 'Get pixel density',
|
||||
description: 'Get pixel density of the device.',
|
||||
render(): React$Node {
|
||||
render(): React.Node {
|
||||
return <GetPixelRatio />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Get font scale',
|
||||
description: 'Get the scaling factor for font sizes.',
|
||||
render(): React$Node {
|
||||
render(): React.Node {
|
||||
return <GetFontScale />;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Get pixel size from layout size',
|
||||
description: 'layout size (dp) -> pixel size (px)',
|
||||
render(): React$Node {
|
||||
render(): React.Node {
|
||||
return <LayoutSizeToPixel />;
|
||||
},
|
||||
},
|
||||
@@ -204,7 +204,7 @@ exports.examples = [
|
||||
title: 'Rounds a layout size to the nearest pixel',
|
||||
description:
|
||||
'Rounds a layout size (dp) to the nearest layout size that corresponds to an integer number of pixels',
|
||||
render(): React$Node {
|
||||
render(): React.Node {
|
||||
return <RoundToNearestPixel />;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user