DaniAkash/react-native-blank-spacer

View on GitHub
src/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";
import { View, ViewProps } from "react-native";

export interface BlankSpacerProps extends ViewProps {
  height?: number;
  width?: number;
  color?: string;
}

const BlankSpacer = ({
  style,
  height,
  width,
  color: backgroundColor,
  ...otherProps
}: BlankSpacerProps) => (
  <View style={[{ height, width, backgroundColor }, style]} {...otherProps} />
);

export default BlankSpacer;