Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 771 Bytes

File metadata and controls

29 lines (21 loc) · 771 Bytes

react-native-app-helpers/createMinimumHeightComponent

Creates a React component which has a minimum height.

Usage

import { createMinimumHeightComponent } from "react-native-app-helpers";

const ExampleComponent = createMinimumHeightComponent(243);

const ExampleScreen = () => (
  <ExampleComponent width="fillsContainer">
    <Text>This is at least 243 tall and fills its container horizontally.</Text>
  </ExampleComponent>
);
import { createMinimumHeightComponent } from "react-native-app-helpers";

const ExampleComponent = createMinimumHeightComponent(243);

const ExampleScreen = () => (
  <ExampleComponent width="fitsContent">
    <Text>This is at least 243 tall and fits its content horizontally.</Text>
  </ExampleComponent>
);