Initial import: Music_Server, MusicFree, catalog-sync
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import React from "react";
|
||||
import { StyleProp, ViewStyle } from "react-native";
|
||||
import { SafeAreaView } from "react-native-safe-area-context";
|
||||
|
||||
interface IHorizontalSafeAreaViewProps {
|
||||
mode?: "margin" | "padding";
|
||||
children: JSX.Element | JSX.Element[];
|
||||
style?: StyleProp<ViewStyle>;
|
||||
}
|
||||
export default function HorizontalSafeAreaView(
|
||||
props: IHorizontalSafeAreaViewProps,
|
||||
) {
|
||||
const { children, style, mode } = props;
|
||||
return (
|
||||
<SafeAreaView style={style} mode={mode} edges={["right", "left"]}>
|
||||
{children}
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user