Skip to content

Commit bad9c71

Browse files
committed
fix: format code
1 parent 50e06fc commit bad9c71

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

example/src/Examples/BadgeExample.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ const BadgeExample = () => {
2121
return (
2222
<ScreenWrapper>
2323
<View style={[styles.row, styles.item]}>
24-
<Text style={styles.label} variant="bodyMedium">Show badges</Text>
24+
<Text style={styles.label} variant="bodyMedium">
25+
Show badges
26+
</Text>
2527
<Switch
2628
value={visible}
2729
onValueChange={(visible) => setVisible(visible)}

example/src/Examples/ProgressBarExample.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ const ProgressBarExample = () => {
6969
</View>
7070

7171
<View style={styles.row}>
72-
<Text variant="bodyMedium">ProgressBar with custom background color</Text>
72+
<Text variant="bodyMedium">
73+
ProgressBar with custom background color
74+
</Text>
7375
<ProgressBar
7476
progress={progress}
7577
visible={visible}

src/components/Surface.tsx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,28 @@ const Surface = React.forwardRef<View, Props>(
218218

219219
const shadowColor = '#000';
220220

221-
const { position, alignSelf, top, left, right, bottom, start, end, ...restStyle } =
222-
(StyleSheet.flatten(style) || {}) as ViewStyle;
221+
const {
222+
position,
223+
alignSelf,
224+
top,
225+
left,
226+
right,
227+
bottom,
228+
start,
229+
end,
230+
...restStyle
231+
} = (StyleSheet.flatten(style) || {}) as ViewStyle;
223232

224-
const absoluteStyles = { position, alignSelf, top, right, bottom, left, start, end };
233+
const absoluteStyles = {
234+
position,
235+
alignSelf,
236+
top,
237+
right,
238+
bottom,
239+
left,
240+
start,
241+
end,
242+
};
225243
const sharedStyle = [{ backgroundColor }, restStyle];
226244

227245
if (isAnimatedValue(elevation)) {

0 commit comments

Comments
 (0)