|
1 | 1 | import SettWrapper from '@components/Settings/SettWrapper'
|
2 | 2 | import { watchLocation } from '@screens/LocationNotes/lib'
|
3 | 3 | import LocationDetails from '@screens/LocationNotes/LocationDetails'
|
4 |
| -import { Bold, MEDIUM, SemiBold } from '@utils/fonts' |
5 |
| -import { layout } from '@utils/utils' |
| 4 | +import { Bold, Medium, SemiBold } from '@utils/fonts' |
6 | 5 | import { useEffect, useState } from 'react'
|
7 | 6 | import { View } from 'react-native'
|
8 | 7 | import Geolocation from 'react-native-geolocation-service'
|
9 |
| -import Animated from 'react-native-reanimated' |
10 | 8 |
|
11 | 9 | export default function LocationSpeed() {
|
12 | 10 | const [pos, setPos] = useState<Geolocation.GeoPosition | null>(null)
|
@@ -44,14 +42,10 @@ export default function LocationSpeed() {
|
44 | 42 | return (
|
45 | 43 | <SettWrapper title='Location Speed Meter'>
|
46 | 44 | <View className='py-20 pb-16'>
|
47 |
| - <Animated.Text |
48 |
| - className='text pl-14 text-center' |
49 |
| - style={[{ fontSize: 130, lineHeight: 130 }, MEDIUM]} |
50 |
| - layout={layout} |
51 |
| - > |
| 45 | + <Medium className='text pl-12 text-center' style={[{ fontSize: 130, lineHeight: 130 }]}> |
52 | 46 | {s}
|
53 | 47 | <Bold style={{ fontSize: 25 }}>km/h</Bold>
|
54 |
| - </Animated.Text> |
| 48 | + </Medium> |
55 | 49 | <SemiBold className='text text-center text-xl'>Your Speed</SemiBold>
|
56 | 50 | </View>
|
57 | 51 | <LocationDetails data={pos} />
|
|
0 commit comments