From 53428592d38548ba1c106907c91edc33efa0e486 Mon Sep 17 00:00:00 2001 From: Kacper Kafara Date: Tue, 27 Sep 2022 11:20:26 +0200 Subject: [PATCH] style: apply linter suggestion --- src/fabric/ScreenNativeComponent.ts | 76 +++++++++---------- .../ScreenStackHeaderConfigNativeComponent.ts | 50 ++++++------ ...ScreenStackHeaderSubviewNativeComponent.ts | 2 +- src/fabric/ScreenStackNativeComponent.ts | 2 +- 4 files changed, 65 insertions(+), 65 deletions(-) diff --git a/src/fabric/ScreenNativeComponent.ts b/src/fabric/ScreenNativeComponent.ts index 0ac4d0280c..80dd5a6cdb 100644 --- a/src/fabric/ScreenNativeComponent.ts +++ b/src/fabric/ScreenNativeComponent.ts @@ -11,20 +11,20 @@ import type { type ScreenEvent = Readonly<{}>; type ScreenDismissedEvent = Readonly<{ - dismissCount: Int32, + dismissCount: Int32; }>; type TransitionProgressEvent = Readonly<{ - progress: Double, - closing: Int32, - goingForward: Int32, + progress: Double; + closing: Int32; + goingForward: Int32; }>; type GestureResponseDistanceType = Readonly<{ - start: Float, - end: Float, - top: Float, - bottom: Float, + start: Float; + end: Float; + top: Float; + bottom: Float; }>; type StackPresentation = @@ -52,36 +52,36 @@ type SwipeDirection = 'vertical' | 'horizontal'; type ReplaceAnimation = 'pop' | 'push'; export interface NativeProps extends ViewProps { - onAppear?: BubblingEventHandler, - onDisappear?: BubblingEventHandler, - onDismissed?: BubblingEventHandler, - onNativeDismissCancelled?: BubblingEventHandler, - onWillAppear?: BubblingEventHandler, - onWillDisappear?: BubblingEventHandler, - onTransitionProgress?: BubblingEventHandler, - customAnimationOnSwipe?: boolean, - fullScreenSwipeEnabled?: boolean, - homeIndicatorHidden?: boolean, - preventNativeDismiss?: boolean, - gestureEnabled?: WithDefault, - statusBarColor?: ColorValue, - statusBarHidden?: boolean, - screenOrientation?: string, - statusBarAnimation?: string, - statusBarStyle?: string, - statusBarTranslucent?: boolean, - gestureResponseDistance?: GestureResponseDistanceType, - stackPresentation?: WithDefault, - stackAnimation?: WithDefault, - transitionDuration?: WithDefault, - replaceAnimation?: WithDefault, - swipeDirection?: WithDefault, - hideKeyboardOnSwipe?: boolean, - activityState?: WithDefault, - navigationBarColor?: ColorValue, - navigationBarHidden?: boolean, - nativeBackButtonDismissalEnabled?: boolean, - onHeaderBackButtonClicked?: BubblingEventHandler, + onAppear?: BubblingEventHandler; + onDisappear?: BubblingEventHandler; + onDismissed?: BubblingEventHandler; + onNativeDismissCancelled?: BubblingEventHandler; + onWillAppear?: BubblingEventHandler; + onWillDisappear?: BubblingEventHandler; + onTransitionProgress?: BubblingEventHandler; + customAnimationOnSwipe?: boolean; + fullScreenSwipeEnabled?: boolean; + homeIndicatorHidden?: boolean; + preventNativeDismiss?: boolean; + gestureEnabled?: WithDefault; + statusBarColor?: ColorValue; + statusBarHidden?: boolean; + screenOrientation?: string; + statusBarAnimation?: string; + statusBarStyle?: string; + statusBarTranslucent?: boolean; + gestureResponseDistance?: GestureResponseDistanceType; + stackPresentation?: WithDefault; + stackAnimation?: WithDefault; + transitionDuration?: WithDefault; + replaceAnimation?: WithDefault; + swipeDirection?: WithDefault; + hideKeyboardOnSwipe?: boolean; + activityState?: WithDefault; + navigationBarColor?: ColorValue; + navigationBarHidden?: boolean; + nativeBackButtonDismissalEnabled?: boolean; + onHeaderBackButtonClicked?: BubblingEventHandler; }; export default codegenNativeComponent('RNSScreen', { diff --git a/src/fabric/ScreenStackHeaderConfigNativeComponent.ts b/src/fabric/ScreenStackHeaderConfigNativeComponent.ts index ef8caadaee..ed3b1dcf01 100644 --- a/src/fabric/ScreenStackHeaderConfigNativeComponent.ts +++ b/src/fabric/ScreenStackHeaderConfigNativeComponent.ts @@ -8,32 +8,32 @@ import type { type DirectionType = 'rtl' | 'ltr'; export interface NativeProps extends ViewProps { - backgroundColor?: ColorValue, - backTitle?: string, - backTitleFontFamily?: string, - backTitleFontSize?: Int32, - color?: ColorValue, - direction?: WithDefault, - hidden?: boolean, - hideShadow?: boolean, - largeTitle?: boolean, - largeTitleFontFamily?: string, - largeTitleFontSize?: Int32, - largeTitleFontWeight?: string, - largeTitleBackgroundColor?: ColorValue, - largeTitleHideShadow?: boolean, - largeTitleColor?: ColorValue, - translucent?: boolean, - title?: string, - titleFontFamily?: string, - titleFontSize?: Int32, - titleFontWeight?: string, - titleColor?: ColorValue, - disableBackButtonMenu?: boolean, - hideBackButton?: boolean, - backButtonInCustomView?: boolean, + backgroundColor?: ColorValue; + backTitle?: string; + backTitleFontFamily?: string; + backTitleFontSize?: Int32; + color?: ColorValue; + direction?: WithDefault; + hidden?: boolean; + hideShadow?: boolean; + largeTitle?: boolean; + largeTitleFontFamily?: string; + largeTitleFontSize?: Int32; + largeTitleFontWeight?: string; + largeTitleBackgroundColor?: ColorValue; + largeTitleHideShadow?: boolean; + largeTitleColor?: ColorValue; + translucent?: boolean; + title?: string; + titleFontFamily?: string; + titleFontSize?: Int32; + titleFontWeight?: string; + titleColor?: ColorValue; + disableBackButtonMenu?: boolean; + hideBackButton?: boolean; + backButtonInCustomView?: boolean; // TODO: implement this props on iOS - topInsetEnabled?: boolean, + topInsetEnabled?: boolean; }; export default codegenNativeComponent( diff --git a/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts b/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts index 1ce508169c..93f3d0abe9 100644 --- a/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts +++ b/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts @@ -11,7 +11,7 @@ export type HeaderSubviewTypes = | 'searchBar'; export interface NativeProps extends ViewProps { - type?: WithDefault, + type?: WithDefault; } export default codegenNativeComponent('RNSScreenStackHeaderSubview', {}); diff --git a/src/fabric/ScreenStackNativeComponent.ts b/src/fabric/ScreenStackNativeComponent.ts index 2d4f215c4a..62903f4890 100644 --- a/src/fabric/ScreenStackNativeComponent.ts +++ b/src/fabric/ScreenStackNativeComponent.ts @@ -5,7 +5,7 @@ import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTyp type FinishTransitioningEvent = Readonly<{}>; interface NativeProps extends ViewProps { - onFinishTransitioning?: DirectEventHandler, + onFinishTransitioning?: DirectEventHandler; } export default codegenNativeComponent('RNSScreenStack', {});