Event: Add history detail Fix : - nama variabel pada [id]/ Component Fix: - Spacing : tipe data num | str - ScrollView : tambah background # No Issue "
15 lines
355 B
TypeScript
15 lines
355 B
TypeScript
// src/components/Spacing.tsx
|
|
import React from "react";
|
|
import { View } from "react-native";
|
|
|
|
interface SpacingProps {
|
|
width?: number | string;
|
|
height?: number | string;
|
|
}
|
|
|
|
const Spacing: React.FC<SpacingProps> = ({ width = 20, height = 20 }) => {
|
|
return <View style={{ height: height as any, width: width as any }} />;
|
|
};
|
|
|
|
export default Spacing;
|