Skip to content

Commit

Permalink
chore: TS for ScreenStackHeaderConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Nov 17, 2022
1 parent 7a302c1 commit 1e41e06
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions src/fabric/ScreenStackHeaderConfigNativeComponent.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
/**
* @flow strict-local
* @format
*/
/* eslint-disable */
import * as React from 'react';

import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
import type { ColorValue } from 'react-native/Libraries/StyleSheet/StyleSheet';
import type { ViewProps, ColorValue } from 'react-native';
import type {
Int32,
WithDefault,
} from 'react-native/Libraries/Types/CodegenTypes';

type DirectionType = 'rtl' | 'ltr';

export type NativeProps = $ReadOnly<{|
...ViewProps,
export interface NativeProps extends ViewProps {
backgroundColor?: ColorValue,
backTitle?: string,
backTitleFontFamily?: string,
Expand All @@ -44,11 +34,9 @@ export type NativeProps = $ReadOnly<{|
backButtonInCustomView?: boolean,
// TODO: implement this props on iOS
topInsetEnabled?: boolean,
|}>;

type ComponentType = HostComponent<NativeProps>;
};

export default (codegenNativeComponent<NativeProps>(
export default codegenNativeComponent<NativeProps>(
'RNSScreenStackHeaderConfig',
{}
): ComponentType);
);

0 comments on commit 1e41e06

Please sign in to comment.