15 lines
382 B
TypeScript
15 lines
382 B
TypeScript
import React, { FC } from "react";
|
|
import { Text, TextStyle, View } from "react-native";
|
|
const descriptionStyle: TextStyle = {
|
|
fontSize: parseInt("16%"),
|
|
fontWeight: "bold",
|
|
};
|
|
type Props = {
|
|
time: string;
|
|
};
|
|
export const DependTime: FC<Props> = ({ time }) => (
|
|
<View style={{ flex: 3 }}>
|
|
<Text style={{ ...descriptionStyle, color: "white" }}>{time}</Text>
|
|
</View>
|
|
);
|