mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
[react-native-navigation] Make navigator a class
Navigator is exported by rnn and is a class. cc @egorshulga
This commit is contained in:
2
types/react-native-navigation/index.d.ts
vendored
2
types/react-native-navigation/index.d.ts
vendored
@@ -102,7 +102,7 @@ export interface LightBox {
|
||||
adjustSoftInput?: 'nothing' | 'pan' | 'resize' | 'unspecified';
|
||||
}
|
||||
|
||||
export interface Navigator {
|
||||
export class Navigator {
|
||||
push(params: PushedScreen): void;
|
||||
pop(params?: { animated?: boolean; animationType?: 'fade' | 'slide-horizontal'; }): void;
|
||||
popToRoot(params?: { animated?: boolean; animationType?: 'fade' | 'slide-horizontal'; }): void;
|
||||
|
||||
Reference in New Issue
Block a user