From 87529593e42c702a8033e8dd93616a7da7828e70 Mon Sep 17 00:00:00 2001 From: Jason Merino Date: Wed, 6 Jun 2018 08:12:09 -0700 Subject: [PATCH] Add tests. --- types/react-native-navigation/index.d.ts | 1 + types/react-native-navigation/react-native-navigation-tests.tsx | 2 ++ 2 files changed, 3 insertions(+) diff --git a/types/react-native-navigation/index.d.ts b/types/react-native-navigation/index.d.ts index c4a7a4419d..cf2225a0a3 100644 --- a/types/react-native-navigation/index.d.ts +++ b/types/react-native-navigation/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for react-native-navigation 1.1 // Project: https://github.com/wix/react-native-navigation // Definitions by: Egor Shulga +// Jason Merino // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 diff --git a/types/react-native-navigation/react-native-navigation-tests.tsx b/types/react-native-navigation/react-native-navigation-tests.tsx index e99bfd47dc..91ab4088e8 100644 --- a/types/react-native-navigation/react-native-navigation-tests.tsx +++ b/types/react-native-navigation/react-native-navigation-tests.tsx @@ -20,6 +20,8 @@ class Screen1 extends React.Component { onNavigatorEvent = (event: NavigatorEvent) => { if (event.id === 'willAppear') { console.log('will appear'); + } else if (event.type === 'NavBarButtonPress' && event.id === 'sideMenu') { + console.log('side menu pressed'); } }