[react-native-navigation] Modified NavigationComponentProps

This commit is contained in:
Danilo Bürger
2018-02-12 14:40:11 +01:00
parent 33b51aea48
commit 38608567ca
2 changed files with 4 additions and 5 deletions

View File

@@ -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;

View File

@@ -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'