Skip to content

Commit 92ad2c6

Browse files
committed
chore: tidy
1 parent cd8db86 commit 92ad2c6

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

example/src/screens/MapScreen.tsx

+18-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
import { useRef } from 'react'
2-
import { Text, TouchableOpacity, View, type StyleProp, type TextStyle, type ViewStyle } from 'react-native'
2+
import {
3+
Text,
4+
TouchableOpacity,
5+
View,
6+
type StyleProp,
7+
type TextStyle,
8+
type ViewStyle,
9+
} from 'react-native'
310
import { TrueSheet, type SizeInfo } from '@lodev09/react-native-true-sheet'
411
import MapView from 'react-native-maps'
512
import { useSafeAreaInsets } from 'react-native-safe-area-context'
6-
import Animated, { useSharedValue, withSpring, useAnimatedStyle, useEvent, useHandler } from 'react-native-reanimated'
13+
import Animated, {
14+
useSharedValue,
15+
withSpring,
16+
useAnimatedStyle,
17+
useEvent,
18+
useHandler,
19+
} from 'react-native-reanimated'
720

821
import {
922
BasicSheet,
@@ -51,7 +64,7 @@ export const MapScreen = () => {
5164
}
5265
},
5366
['onDragChange'],
54-
doDependenciesDiffer,
67+
doDependenciesDiffer
5568
)
5669

5770
const presentBasicSheet = async (index = 0) => {
@@ -63,10 +76,8 @@ export const MapScreen = () => {
6376
$mapStyle,
6477
{ bottom: insets.bottom + SPACING },
6578
useAnimatedStyle(() => ({
66-
transform: [
67-
{ translateY: buttonY.value }
68-
]
69-
}))
79+
transform: [{ translateY: buttonY.value }],
80+
})),
7081
]
7182

7283
const handlePresent = (sizeInfo: SizeInfo) => {

0 commit comments

Comments
 (0)