mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
[react-native-navigation] Modified NavigationComponentProps
This commit is contained in:
7
types/react-native-navigation/index.d.ts
vendored
7
types/react-native-navigation/index.d.ts
vendored
@@ -150,10 +150,9 @@ export interface ListenerParams {
|
||||
commandType: string;
|
||||
}
|
||||
|
||||
export type NavigationComponentProps<P = {}> =
|
||||
P & {
|
||||
navigator: Navigator;
|
||||
};
|
||||
export interface NavigationComponentProps {
|
||||
navigator: Navigator;
|
||||
}
|
||||
|
||||
export interface NavigatorStyle {
|
||||
navBarTextColor?: string;
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as React from 'react';
|
||||
import { Text, View } from 'react-native';
|
||||
import { Navigation, NavigationComponentProps, NavigatorStyle, NavigatorButtons } from 'react-native-navigation';
|
||||
|
||||
class Screen1 extends React.Component<NavigationComponentProps<{ height: number }>> {
|
||||
class Screen1 extends React.Component<NavigationComponentProps & { height: number }> {
|
||||
static navigatorButtons: NavigatorButtons = {
|
||||
leftButtons: [{
|
||||
id: 'sideMenu'
|
||||
|
||||
Reference in New Issue
Block a user