react-native-keyboard-controller 1.13.4 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/android/src/fabric/java/com/reactnativekeyboardcontroller/KeyboardControllerModule.kt +5 -3
- package/android/src/fabric/java/com/reactnativekeyboardcontroller/KeyboardControllerViewManager.kt +19 -20
- package/android/src/fabric/java/com/reactnativekeyboardcontroller/KeyboardGestureAreaViewManager.kt +22 -12
- package/android/src/fabric/java/com/reactnativekeyboardcontroller/OverKeyboardViewManager.kt +40 -0
- package/android/src/fabric/java/com/reactnativekeyboardcontroller/StatusBarManagerCompatModule.kt +7 -3
- package/android/src/main/java/com/reactnativekeyboardcontroller/KeyboardControllerPackage.kt +33 -27
- package/android/src/main/java/com/reactnativekeyboardcontroller/events/FocusedInputLayoutChangedEvent.kt +16 -15
- package/android/src/main/java/com/reactnativekeyboardcontroller/events/FocusedInputSelectionChangedEvent.kt +25 -24
- package/android/src/main/java/com/reactnativekeyboardcontroller/events/FocusedInputTextChangedEvent.kt +4 -3
- package/android/src/main/java/com/reactnativekeyboardcontroller/events/KeyboardTransitionEvent.kt +7 -6
- package/android/src/main/java/com/reactnativekeyboardcontroller/extensions/Context.kt +38 -0
- package/android/src/main/java/com/reactnativekeyboardcontroller/extensions/EditText.kt +78 -58
- package/android/src/main/java/com/reactnativekeyboardcontroller/extensions/ReactContext.kt +9 -4
- package/android/src/main/java/com/reactnativekeyboardcontroller/extensions/ThemedReactContext.kt +10 -3
- package/android/src/main/java/com/reactnativekeyboardcontroller/extensions/View.kt +10 -8
- package/android/src/main/java/com/reactnativekeyboardcontroller/interactive/KeyboardAnimationController.kt +65 -60
- package/android/src/main/java/com/reactnativekeyboardcontroller/interactive/interpolators/Interpolator.kt +6 -1
- package/android/src/main/java/com/reactnativekeyboardcontroller/interactive/interpolators/IosInterpolator.kt +4 -2
- package/android/src/main/java/com/reactnativekeyboardcontroller/interactive/interpolators/LinearInterpolator.kt +1 -3
- package/android/src/main/java/com/reactnativekeyboardcontroller/listeners/FocusedInputObserver.kt +62 -58
- package/android/src/main/java/com/reactnativekeyboardcontroller/listeners/KeyboardAnimationCallback.kt +47 -41
- package/android/src/main/java/com/reactnativekeyboardcontroller/listeners/WindowDimensionListener.kt +13 -7
- package/android/src/main/java/com/reactnativekeyboardcontroller/log/Logger.kt +10 -2
- package/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardControllerViewManagerImpl.kt +35 -24
- package/android/src/main/java/com/reactnativekeyboardcontroller/managers/KeyboardGestureAreaViewManagerImpl.kt +21 -8
- package/android/src/main/java/com/reactnativekeyboardcontroller/managers/OverKeyboardViewManagerImpl.kt +27 -0
- package/android/src/main/java/com/reactnativekeyboardcontroller/modal/ModalAttachedWatcher.kt +14 -12
- package/android/src/main/java/com/reactnativekeyboardcontroller/modules/KeyboardControllerModuleImpl.kt +8 -8
- package/android/src/main/java/com/reactnativekeyboardcontroller/modules/StatusBarManagerCompatModuleImpl.kt +7 -2
- package/android/src/main/java/com/reactnativekeyboardcontroller/traversal/FocusedInputHolder.kt +1 -3
- package/android/src/main/java/com/reactnativekeyboardcontroller/traversal/ViewHierarchyNavigator.kt +19 -13
- package/android/src/main/java/com/reactnativekeyboardcontroller/ui/FrameScheduler.kt +11 -8
- package/android/src/main/java/com/reactnativekeyboardcontroller/views/EdgeToEdgeReactViewGroup.kt +22 -17
- package/android/src/main/java/com/reactnativekeyboardcontroller/views/KeyboardGestureAreaReactViewGroup.kt +23 -14
- package/android/src/main/java/com/reactnativekeyboardcontroller/views/overlay/OverKeyboardHostShadowNode.kt +30 -0
- package/android/src/main/java/com/reactnativekeyboardcontroller/views/overlay/OverKeyboardViewGroup.kt +185 -0
- package/android/src/paper/java/com/reactnativekeyboardcontroller/KeyboardControllerModule.kt +3 -1
- package/android/src/paper/java/com/reactnativekeyboardcontroller/KeyboardControllerViewManager.kt +19 -10
- package/android/src/paper/java/com/reactnativekeyboardcontroller/KeyboardGestureAreaViewManager.kt +21 -8
- package/android/src/paper/java/com/reactnativekeyboardcontroller/OverKeyboardViewManager.kt +33 -0
- package/android/src/paper/java/com/reactnativekeyboardcontroller/StatusBarManagerCompatModule.kt +7 -3
- package/android/src/test/java/com/reactnativekeyboardcontroller/traversal/ViewHierarchyNavigatorTest.kt +30 -21
- package/ios/KeyboardController-Bridging-Header.h +1 -0
- package/ios/extensions/UIResponder.swift +0 -3
- package/ios/extensions/UIWindow.swift +48 -0
- package/ios/views/OverKeyboardViewManager.h +29 -0
- package/ios/views/OverKeyboardViewManager.mm +220 -0
- package/jest/index.js +1 -0
- package/lib/commonjs/bindings.js +2 -1
- package/lib/commonjs/bindings.js.map +1 -1
- package/lib/commonjs/bindings.native.js +2 -1
- package/lib/commonjs/bindings.native.js.map +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/index.js +2 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/index.js.map +1 -1
- package/lib/commonjs/components/KeyboardToolbar/index.js +5 -3
- package/lib/commonjs/components/KeyboardToolbar/index.js.map +1 -1
- package/lib/commonjs/index.js +9 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/specs/OverKeyboardViewNativeComponent.js +10 -0
- package/lib/commonjs/specs/OverKeyboardViewNativeComponent.js.map +1 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/views/OverKeyboardView/index.js +43 -0
- package/lib/commonjs/views/OverKeyboardView/index.js.map +1 -0
- package/lib/commonjs/views/index.js +14 -0
- package/lib/commonjs/views/index.js.map +1 -0
- package/lib/module/bindings.js +1 -0
- package/lib/module/bindings.js.map +1 -1
- package/lib/module/bindings.native.js +1 -0
- package/lib/module/bindings.native.js.map +1 -1
- package/lib/module/components/KeyboardAwareScrollView/index.js +2 -1
- package/lib/module/components/KeyboardAwareScrollView/index.js.map +1 -1
- package/lib/module/components/KeyboardToolbar/index.js +5 -3
- package/lib/module/components/KeyboardToolbar/index.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/OverKeyboardViewNativeComponent.js +3 -0
- package/lib/module/specs/OverKeyboardViewNativeComponent.js.map +1 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/views/OverKeyboardView/index.js +35 -0
- package/lib/module/views/OverKeyboardView/index.js.map +1 -0
- package/lib/module/views/index.js +2 -0
- package/lib/module/views/index.js.map +1 -0
- package/lib/typescript/bindings.d.ts +2 -1
- package/lib/typescript/bindings.native.d.ts +2 -1
- package/lib/typescript/components/KeyboardAwareScrollView/index.d.ts +4 -0
- package/lib/typescript/components/KeyboardToolbar/index.d.ts +2 -2
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/specs/OverKeyboardViewNativeComponent.d.ts +7 -0
- package/lib/typescript/types.d.ts +4 -1
- package/lib/typescript/views/OverKeyboardView/index.d.ts +5 -0
- package/lib/typescript/views/index.d.ts +1 -0
- package/package.json +8 -3
- package/src/bindings.native.ts +3 -0
- package/src/bindings.ts +3 -0
- package/src/components/KeyboardAwareScrollView/index.tsx +5 -2
- package/src/components/KeyboardToolbar/index.tsx +7 -3
- package/src/index.ts +1 -0
- package/src/specs/OverKeyboardViewNativeComponent.ts +12 -0
- package/src/types.ts +4 -0
- package/src/views/OverKeyboardView/index.tsx +43 -0
- package/src/views/index.ts +1 -0
- package/ios/.clang-format +0 -90
- package/ios/.swiftformat +0 -5
- package/ios/.swiftlint.yml +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
2
|
import type { EmitterSubscription, NativeSyntheticEvent, ViewProps } from "react-native";
|
|
3
3
|
export type NativeEvent = {
|
|
4
4
|
progress: number;
|
|
@@ -74,6 +74,9 @@ export type KeyboardGestureAreaProps = {
|
|
|
74
74
|
*/
|
|
75
75
|
offset?: number;
|
|
76
76
|
} & ViewProps;
|
|
77
|
+
export type OverKeyboardViewProps = PropsWithChildren<{
|
|
78
|
+
visible: boolean;
|
|
79
|
+
}>;
|
|
77
80
|
export type Direction = "next" | "prev" | "current";
|
|
78
81
|
export type KeyboardControllerModule = {
|
|
79
82
|
setDefaultMode: () => void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { OverKeyboardViewProps } from "../../types";
|
|
3
|
+
import type { PropsWithChildren } from "react";
|
|
4
|
+
declare const OverKeyboardView: ({ children, visible, }: PropsWithChildren<OverKeyboardViewProps>) => React.JSX.Element;
|
|
5
|
+
export default OverKeyboardView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OverKeyboardView } from "./OverKeyboardView";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-keyboard-controller",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "Keyboard manager which works in identical way on both iOS and Android",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -21,8 +21,12 @@
|
|
|
21
21
|
"!android/gradle",
|
|
22
22
|
"!android/gradlew",
|
|
23
23
|
"!android/gradlew.bat",
|
|
24
|
+
"!android/.editorconfig",
|
|
24
25
|
"!ios/build",
|
|
25
26
|
"!ios/KeyboardControllerNative",
|
|
27
|
+
"!ios/.swiftlint.yml",
|
|
28
|
+
"!ios/.swiftformat",
|
|
29
|
+
"!ios/.clang-format",
|
|
26
30
|
"!**/__tests__",
|
|
27
31
|
"!**/__fixtures__",
|
|
28
32
|
"!**/__mocks__"
|
|
@@ -51,6 +55,7 @@
|
|
|
51
55
|
"avoiding view",
|
|
52
56
|
"avoid keyboard",
|
|
53
57
|
"sticky view",
|
|
58
|
+
"over keyboard view",
|
|
54
59
|
"keyboard aware scroll view",
|
|
55
60
|
"keyboard toolbar",
|
|
56
61
|
"keyboard done button",
|
|
@@ -71,7 +76,7 @@
|
|
|
71
76
|
},
|
|
72
77
|
"devDependencies": {
|
|
73
78
|
"@commitlint/config-conventional": "^11.0.0",
|
|
74
|
-
"@react-native/eslint-config": "^0.75.
|
|
79
|
+
"@react-native/eslint-config": "^0.75.3",
|
|
75
80
|
"@release-it/conventional-changelog": "^2.0.0",
|
|
76
81
|
"@testing-library/react-hooks": "^8.0.1",
|
|
77
82
|
"@types/jest": "^29.2.1",
|
|
@@ -94,7 +99,7 @@
|
|
|
94
99
|
"pod-install": "^0.1.0",
|
|
95
100
|
"prettier": "^2.8.8",
|
|
96
101
|
"react": "18.3.1",
|
|
97
|
-
"react-native": "0.75.
|
|
102
|
+
"react-native": "0.75.3",
|
|
98
103
|
"react-native-builder-bob": "^0.18.0",
|
|
99
104
|
"react-native-reanimated": "3.15.0",
|
|
100
105
|
"react-test-renderer": "18.2.0",
|
package/src/bindings.native.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
KeyboardControllerProps,
|
|
7
7
|
KeyboardEventsModule,
|
|
8
8
|
KeyboardGestureAreaProps,
|
|
9
|
+
OverKeyboardViewProps,
|
|
9
10
|
WindowDimensionsEventsModule,
|
|
10
11
|
} from "./types";
|
|
11
12
|
|
|
@@ -56,3 +57,5 @@ export const KeyboardGestureArea: React.FC<KeyboardGestureAreaProps> =
|
|
|
56
57
|
Platform.OS === "android" && Platform.Version >= 30
|
|
57
58
|
? require("./specs/KeyboardGestureAreaNativeComponent").default
|
|
58
59
|
: ({ children }: KeyboardGestureAreaProps) => children;
|
|
60
|
+
export const RCTOverKeyboardView: React.FC<OverKeyboardViewProps> =
|
|
61
|
+
require("./specs/OverKeyboardViewNativeComponent").default;
|
package/src/bindings.ts
CHANGED
|
@@ -6,6 +6,7 @@ import type {
|
|
|
6
6
|
KeyboardControllerProps,
|
|
7
7
|
KeyboardEventsModule,
|
|
8
8
|
KeyboardGestureAreaProps,
|
|
9
|
+
OverKeyboardViewProps,
|
|
9
10
|
WindowDimensionsEventsModule,
|
|
10
11
|
} from "./types";
|
|
11
12
|
import type { EmitterSubscription } from "react-native";
|
|
@@ -37,3 +38,5 @@ export const KeyboardControllerView =
|
|
|
37
38
|
View as unknown as React.FC<KeyboardControllerProps>;
|
|
38
39
|
export const KeyboardGestureArea =
|
|
39
40
|
View as unknown as React.FC<KeyboardGestureAreaProps>;
|
|
41
|
+
export const RCTOverKeyboardView =
|
|
42
|
+
View as unknown as React.FC<OverKeyboardViewProps>;
|
|
@@ -38,6 +38,8 @@ export type KeyboardAwareScrollViewProps = {
|
|
|
38
38
|
enabled?: boolean;
|
|
39
39
|
/** Adjusting the bottom spacing of KeyboardAwareScrollView. Default is `0` */
|
|
40
40
|
extraKeyboardSpace?: number;
|
|
41
|
+
/** Custom component for `ScrollView`. Default is `ScrollView` */
|
|
42
|
+
ScrollViewComponent?: React.ComponentType<ScrollViewProps>;
|
|
41
43
|
} & ScrollViewProps;
|
|
42
44
|
|
|
43
45
|
/*
|
|
@@ -90,6 +92,7 @@ const KeyboardAwareScrollView = forwardRef<
|
|
|
90
92
|
disableScrollOnKeyboardHide = false,
|
|
91
93
|
enabled = true,
|
|
92
94
|
extraKeyboardSpace = 0,
|
|
95
|
+
ScrollViewComponent = Reanimated.ScrollView,
|
|
93
96
|
snapToOffsets,
|
|
94
97
|
...rest
|
|
95
98
|
},
|
|
@@ -362,7 +365,7 @@ const KeyboardAwareScrollView = forwardRef<
|
|
|
362
365
|
);
|
|
363
366
|
|
|
364
367
|
return (
|
|
365
|
-
<
|
|
368
|
+
<ScrollViewComponent
|
|
366
369
|
ref={onRef}
|
|
367
370
|
{...rest}
|
|
368
371
|
scrollEventThrottle={16}
|
|
@@ -370,7 +373,7 @@ const KeyboardAwareScrollView = forwardRef<
|
|
|
370
373
|
>
|
|
371
374
|
{children}
|
|
372
375
|
<Reanimated.View style={view} />
|
|
373
|
-
</
|
|
376
|
+
</ScrollViewComponent>
|
|
374
377
|
);
|
|
375
378
|
},
|
|
376
379
|
);
|
|
@@ -11,9 +11,12 @@ import { colors } from "./colors";
|
|
|
11
11
|
|
|
12
12
|
import type { HEX, KeyboardToolbarTheme } from "./types";
|
|
13
13
|
import type { ReactNode } from "react";
|
|
14
|
-
import type { GestureResponderEvent } from "react-native";
|
|
14
|
+
import type { GestureResponderEvent, ViewProps } from "react-native";
|
|
15
15
|
|
|
16
|
-
export type KeyboardToolbarProps =
|
|
16
|
+
export type KeyboardToolbarProps = Omit<
|
|
17
|
+
ViewProps,
|
|
18
|
+
"style" | "testID" | "children"
|
|
19
|
+
> & {
|
|
17
20
|
/** An element that is shown in the middle of the toolbar. */
|
|
18
21
|
content?: JSX.Element | null;
|
|
19
22
|
/** A set of dark/light colors consumed by toolbar component. */
|
|
@@ -81,6 +84,7 @@ const KeyboardToolbar: React.FC<KeyboardToolbarProps> = ({
|
|
|
81
84
|
onDoneCallback,
|
|
82
85
|
blur = null,
|
|
83
86
|
opacity = DEFAULT_OPACITY,
|
|
87
|
+
...rest
|
|
84
88
|
}) => {
|
|
85
89
|
const colorScheme = useColorScheme();
|
|
86
90
|
const [inputs, setInputs] = useState({
|
|
@@ -146,7 +150,7 @@ const KeyboardToolbar: React.FC<KeyboardToolbarProps> = ({
|
|
|
146
150
|
|
|
147
151
|
return (
|
|
148
152
|
<KeyboardStickyView offset={offset}>
|
|
149
|
-
<View style={toolbarStyle} testID={TEST_ID_KEYBOARD_TOOLBAR}>
|
|
153
|
+
<View {...rest} style={toolbarStyle} testID={TEST_ID_KEYBOARD_TOOLBAR}>
|
|
150
154
|
{blur}
|
|
151
155
|
{showArrows && (
|
|
152
156
|
<>
|
package/src/index.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent";
|
|
2
|
+
|
|
3
|
+
import type { HostComponent } from "react-native";
|
|
4
|
+
import type { ViewProps } from "react-native/Libraries/Components/View/ViewPropTypes";
|
|
5
|
+
|
|
6
|
+
export interface NativeProps extends ViewProps {
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default codegenNativeComponent<NativeProps>(
|
|
11
|
+
"OverKeyboardView",
|
|
12
|
+
) as HostComponent<NativeProps>;
|
package/src/types.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
1
2
|
import type {
|
|
2
3
|
EmitterSubscription,
|
|
3
4
|
NativeSyntheticEvent,
|
|
@@ -108,6 +109,9 @@ export type KeyboardGestureAreaProps = {
|
|
|
108
109
|
*/
|
|
109
110
|
offset?: number;
|
|
110
111
|
} & ViewProps;
|
|
112
|
+
export type OverKeyboardViewProps = PropsWithChildren<{
|
|
113
|
+
visible: boolean;
|
|
114
|
+
}>;
|
|
111
115
|
|
|
112
116
|
export type Direction = "next" | "prev" | "current";
|
|
113
117
|
export type KeyboardControllerModule = {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { Platform, StyleSheet, View } from "react-native";
|
|
3
|
+
|
|
4
|
+
import { RCTOverKeyboardView } from "../../bindings";
|
|
5
|
+
import { useWindowDimensions } from "../../hooks";
|
|
6
|
+
|
|
7
|
+
import type { OverKeyboardViewProps } from "../../types";
|
|
8
|
+
import type { PropsWithChildren } from "react";
|
|
9
|
+
|
|
10
|
+
const OverKeyboardView = ({
|
|
11
|
+
children,
|
|
12
|
+
visible,
|
|
13
|
+
}: PropsWithChildren<OverKeyboardViewProps>) => {
|
|
14
|
+
const { height, width } = useWindowDimensions();
|
|
15
|
+
const inner = useMemo(() => ({ height, width }), [height, width]);
|
|
16
|
+
const style = useMemo(
|
|
17
|
+
() => [
|
|
18
|
+
styles.absolute,
|
|
19
|
+
// On iOS - stretch view to full window dimensions to make yoga work
|
|
20
|
+
// On Android Fabric we temporarily use the same approach
|
|
21
|
+
// @ts-expect-error `_IS_FABRIC` is injected by REA
|
|
22
|
+
Platform.OS === "ios" || global._IS_FABRIC ? inner : undefined,
|
|
23
|
+
],
|
|
24
|
+
[inner],
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<RCTOverKeyboardView visible={visible}>
|
|
29
|
+
{/* `OverKeyboardView` should always have a single child */}
|
|
30
|
+
<View collapsable={false} style={style}>
|
|
31
|
+
{children}
|
|
32
|
+
</View>
|
|
33
|
+
</RCTOverKeyboardView>
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const styles = StyleSheet.create({
|
|
38
|
+
absolute: {
|
|
39
|
+
position: "absolute",
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export default OverKeyboardView;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OverKeyboardView } from "./OverKeyboardView";
|
package/ios/.clang-format
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
AccessModifierOffset: -1
|
|
3
|
-
AlignAfterOpenBracket: AlwaysBreak
|
|
4
|
-
AlignConsecutiveAssignments: false
|
|
5
|
-
AlignConsecutiveDeclarations: false
|
|
6
|
-
AlignEscapedNewlinesLeft: true
|
|
7
|
-
AlignOperands: false
|
|
8
|
-
AlignTrailingComments: false
|
|
9
|
-
AllowAllParametersOfDeclarationOnNextLine: false
|
|
10
|
-
AllowShortBlocksOnASingleLine: false
|
|
11
|
-
AllowShortCaseLabelsOnASingleLine: false
|
|
12
|
-
AllowShortFunctionsOnASingleLine: Empty
|
|
13
|
-
AllowShortIfStatementsOnASingleLine: false
|
|
14
|
-
AllowShortLoopsOnASingleLine: false
|
|
15
|
-
AlwaysBreakAfterReturnType: None
|
|
16
|
-
AlwaysBreakBeforeMultilineStrings: true
|
|
17
|
-
AlwaysBreakTemplateDeclarations: true
|
|
18
|
-
BinPackArguments: false
|
|
19
|
-
BinPackParameters: false
|
|
20
|
-
BraceWrapping:
|
|
21
|
-
AfterClass: false
|
|
22
|
-
AfterControlStatement: false
|
|
23
|
-
AfterEnum: false
|
|
24
|
-
AfterFunction: false
|
|
25
|
-
AfterNamespace: false
|
|
26
|
-
AfterObjCDeclaration: false
|
|
27
|
-
AfterStruct: false
|
|
28
|
-
AfterUnion: false
|
|
29
|
-
BeforeCatch: false
|
|
30
|
-
BeforeElse: false
|
|
31
|
-
IndentBraces: false
|
|
32
|
-
BreakBeforeBinaryOperators: None
|
|
33
|
-
BreakBeforeBraces: Attach
|
|
34
|
-
BreakBeforeTernaryOperators: true
|
|
35
|
-
BreakConstructorInitializersBeforeComma: false
|
|
36
|
-
BreakAfterJavaFieldAnnotations: false
|
|
37
|
-
BreakStringLiterals: false
|
|
38
|
-
ColumnLimit: 80
|
|
39
|
-
CommentPragmas: "^ IWYU pragma:"
|
|
40
|
-
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
|
41
|
-
ConstructorInitializerIndentWidth: 4
|
|
42
|
-
ContinuationIndentWidth: 4
|
|
43
|
-
Cpp11BracedListStyle: true
|
|
44
|
-
DerivePointerAlignment: false
|
|
45
|
-
DisableFormat: false
|
|
46
|
-
ForEachMacros: [FOR_EACH_RANGE, FOR_EACH]
|
|
47
|
-
IncludeCategories:
|
|
48
|
-
- Regex: '^<.*\.h(pp)?>'
|
|
49
|
-
Priority: 1
|
|
50
|
-
- Regex: "^<.*"
|
|
51
|
-
Priority: 2
|
|
52
|
-
- Regex: ".*"
|
|
53
|
-
Priority: 3
|
|
54
|
-
IndentCaseLabels: true
|
|
55
|
-
IndentWidth: 2
|
|
56
|
-
IndentWrappedFunctionNames: false
|
|
57
|
-
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
58
|
-
MacroBlockBegin: ""
|
|
59
|
-
MacroBlockEnd: ""
|
|
60
|
-
MaxEmptyLinesToKeep: 1
|
|
61
|
-
NamespaceIndentation: None
|
|
62
|
-
ObjCBlockIndentWidth: 2
|
|
63
|
-
ObjCSpaceAfterProperty: true
|
|
64
|
-
ObjCSpaceBeforeProtocolList: true
|
|
65
|
-
PenaltyBreakBeforeFirstCallParameter: 1
|
|
66
|
-
PenaltyBreakComment: 300
|
|
67
|
-
PenaltyBreakFirstLessLess: 120
|
|
68
|
-
PenaltyBreakString: 1000
|
|
69
|
-
PenaltyExcessCharacter: 1000000
|
|
70
|
-
PenaltyReturnTypeOnItsOwnLine: 200
|
|
71
|
-
PointerAlignment: Right
|
|
72
|
-
ReflowComments: true
|
|
73
|
-
SortIncludes: true
|
|
74
|
-
SpaceAfterCStyleCast: false
|
|
75
|
-
SpaceBeforeAssignmentOperators: true
|
|
76
|
-
SpaceBeforeParens: ControlStatements
|
|
77
|
-
SpaceInEmptyParentheses: false
|
|
78
|
-
SpacesBeforeTrailingComments: 1
|
|
79
|
-
SpacesInAngles: false
|
|
80
|
-
SpacesInContainerLiterals: true
|
|
81
|
-
SpacesInCStyleCastParentheses: false
|
|
82
|
-
SpacesInParentheses: false
|
|
83
|
-
SpacesInSquareBrackets: false
|
|
84
|
-
Standard: Cpp11
|
|
85
|
-
TabWidth: 8
|
|
86
|
-
UseTab: Never
|
|
87
|
-
---
|
|
88
|
-
Language: ObjC
|
|
89
|
-
ColumnLimit: 100
|
|
90
|
-
BreakBeforeBraces: WebKit
|
package/ios/.swiftformat
DELETED