aboutsummaryrefslogtreecommitdiff
path: root/src/components/Clock.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Clock.tsx')
-rw-r--r--src/components/Clock.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Clock.tsx b/src/components/Clock.tsx
index 619a31b..f41a298 100644
--- a/src/components/Clock.tsx
+++ b/src/components/Clock.tsx
@@ -1,7 +1,7 @@
import React, {useEffect, useMemo, useState} from 'react';
import {Text, View} from 'react-native';
-export const Clock: React.FC = () => {
+export const Clock: React.FC = React.memo(() => {
const [date, setDate] = useState(() => new Date());
useEffect(() => {
const interval = setInterval(() => {
@@ -34,4 +34,4 @@ export const Clock: React.FC = () => {
<Text className="text-lg">{dateText}</Text>
</View>
);
-};
+});