Skip to content

Commit

Permalink
remove hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
sijad committed Aug 1, 2019
1 parent 77fbd74 commit e0ea40a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 40 deletions.

This file was deleted.

This file was deleted.

Expand Up @@ -4,7 +4,6 @@ import { SafeAreaView, StyleSheet, View, Button } from 'react-native';
import { Header, Colors } from 'react-native/Libraries/NewAppScreen';
import { ScreenProps } from '../types';
import { getIcon } from '../commons';
import { useNavigationButtonPressed } from '../hooks';

interface OtherProps extends ScreenProps {}

Expand All @@ -13,12 +12,6 @@ export function Other({ componentId }: OtherProps) {
Navigation.pop(componentId);
}, [componentId]);

useNavigationButtonPressed(componentId, event => {
if (event.buttonId === 'show-alert') {
alert('Hello!');
}
});

return (
<SafeAreaView style={styles.page}>
<Header />
Expand All @@ -34,13 +27,6 @@ Other.options = (): Options => ({
title: {
text: 'Other Screen',
},
rightButtons: [
{
id: 'show-alert',
text: 'Show Alert',
icon: getIcon('warning'),
},
],
},
});

Expand Down

0 comments on commit e0ea40a

Please sign in to comment.