diff --git a/docs/next/height-and-width.html b/docs/next/height-and-width.html index 9a0188227dc..e98860cffb8 100644 --- a/docs/next/height-and-width.html +++ b/docs/next/height-and-width.html @@ -74,8 +74,7 @@
import React, { Component } from 'react';
import { View } from 'react-native';
-export default class FixedDimensionsBasics extends Component {
- render() {
+export default function FixedDimensionsBasics() {
return (
<View>
<View style={{width: 50, height: 50, backgroundColor: 'powderblue'}} />
@@ -83,12 +82,11 @@
<View style={{width: 150, height: 150, backgroundColor: 'steelblue'}} />
</View>
);
- }
}
import React, { Component } from 'react';
import { View } from 'react-native';
-export default class FlexDimensionsBasics extends Component {
- render() {
+export default function FlexDimensionsBasics() {
return (
// Try removing the `flex: 1` on the parent View.
// The parent will not have dimensions, so the children can't expand.
@@ -121,12 +118,11 @@
<View style={{flex: 3, backgroundColor: 'steelblue'}} />
</View>
);
- }
}
import React, { Component } from 'react';
import { View } from 'react-native';
-export default class FixedDimensionsBasics extends Component {
- render() {
+export default function FixedDimensionsBasics() {
return (
<View>
<View style={{width: 50, height: 50, backgroundColor: 'powderblue'}} />
@@ -83,12 +82,11 @@
<View style={{width: 150, height: 150, backgroundColor: 'steelblue'}} />
</View>
);
- }
}
import React, { Component } from 'react';
import { View } from 'react-native';
-export default class FlexDimensionsBasics extends Component {
- render() {
+export default function FlexDimensionsBasics() {
return (
// Try removing the `flex: 1` on the parent View.
// The parent will not have dimensions, so the children can't expand.
@@ -121,12 +118,11 @@
<View style={{flex: 3, backgroundColor: 'steelblue'}} />
</View>
);
- }
}