Skip to content

Commit

Permalink
fix: restore the proper type for NavigationConfig (#810)
Browse files Browse the repository at this point in the history
Suggested by @satya164 revert of NativeStackNavigationConfig to an empty object. It makes the native-stack Navigator accept only screenOptions, just how it is supposed to do.
  • Loading branch information
WoLewicki authored Feb 11, 2021
1 parent 21db3a5 commit b00a488
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/native-stack/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ export type NativeStackNavigationHelpers = NavigationHelpers<
NativeStackNavigationEventMap
>;

export type NativeStackNavigationConfig = Record<string, unknown>;
// We want it to be an empty object beacuse navigator does not have any additional config
// eslint-disable-next-line @typescript-eslint/ban-types
export type NativeStackNavigationConfig = {};

export type NativeStackNavigationOptions = {
/**
Expand Down

0 comments on commit b00a488

Please sign in to comment.