Skip to content

Commit 3ed7bca

Browse files
committed
style: format component files with prettier
1 parent ab6faa9 commit 3ed7bca

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

src/components/SwiftUI.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
import { PropsWithChildren, ReactElement, ReactNode, useCallback, useEffect, useId, useLayoutEffect } from "react";
1+
import {
2+
PropsWithChildren,
3+
ReactElement,
4+
ReactNode,
5+
useCallback,
6+
useEffect,
7+
useId,
8+
useLayoutEffect,
9+
} from "react";
210
import { StyleProp, ViewStyle } from "react-native";
311
import { SwiftUIParentIdProvider } from "./../contexts";
412
import { SwiftUIProvider, useSwiftUIContext } from "./../contexts/SwiftUIContext";

src/components/SwiftUI/Stepper.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,15 @@ export const Stepper: FunctionComponentWithId<PropsWithChildren<NativeStepperPro
3737
[onChangeProp],
3838
);
3939

40-
const { id } = useSwiftUINode("Stepper", { style: normalizedStyles, ...otherProps }, {
41-
change: onChange,
42-
focus: onFocus,
43-
blur: onBlur,
44-
});
40+
const { id } = useSwiftUINode(
41+
"Stepper",
42+
{ style: normalizedStyles, ...otherProps },
43+
{
44+
change: onChange,
45+
focus: onFocus,
46+
blur: onBlur,
47+
},
48+
);
4549

4650
return <SwiftUIParentIdProvider id={id}>{children}</SwiftUIParentIdProvider>;
4751
};

src/components/SwiftUI/TextField.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ export const TextField: FunctionComponentWithId<NativeTextFieldProps> = ({
4646
...otherProps
4747
}) => {
4848
const normalizedStyles = useNormalizedStyles<NativeTextStyle>(style);
49-
useSwiftUINode("TextField", { style: normalizedStyles, ...otherProps }, { change: onChange, focus: onFocus, blur: onBlur });
49+
useSwiftUINode(
50+
"TextField",
51+
{ style: normalizedStyles, ...otherProps },
52+
{ change: onChange, focus: onFocus, blur: onBlur },
53+
);
5054

5155
return null;
5256
};

0 commit comments

Comments
 (0)