Add tests.

This commit is contained in:
Jason Merino
2018-06-06 08:12:09 -07:00
parent 5f56a0a59f
commit 87529593e4
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
// Type definitions for react-native-navigation 1.1
// Project: https://github.com/wix/react-native-navigation
// Definitions by: Egor Shulga <https://github.com/egorshulga>
// Jason Merino <https://github.com/jasonmerino>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
@@ -20,6 +20,8 @@ class Screen1 extends React.Component<Props> {
onNavigatorEvent = (event: NavigatorEvent) => {
if (event.id === 'willAppear') {
console.log('will appear');
} else if (event.type === 'NavBarButtonPress' && event.id === 'sideMenu') {
console.log('side menu pressed');
}
}