Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 8b4fcc3

Browse files
committed
removed container style
1 parent 1a5a2ce commit 8b4fcc3

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/index.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { View, ViewProps, StyleSheet } from "react-native";
2+
import { View, ViewProps } from "react-native";
33

44
export interface BlankSpacerProps extends ViewProps {
55
height?: number;
@@ -14,16 +14,7 @@ const BlankSpacer = ({
1414
color: backgroundColor,
1515
...otherProps
1616
}: BlankSpacerProps) => (
17-
<View
18-
style={[styles.container, { height, width, backgroundColor }, style]}
19-
{...otherProps}
20-
/>
17+
<View style={[{ height, width, backgroundColor }, style]} {...otherProps} />
2118
);
2219

23-
const styles = StyleSheet.create({
24-
container: {
25-
flex: 1
26-
}
27-
});
28-
2920
export default BlankSpacer;

0 commit comments

Comments
 (0)