Skip to content

Commit

Permalink
Remove code specific to Android in Toolbar Search (#54)
Browse files Browse the repository at this point in the history
All platforms (iOS, android and 3rd party windows) implements BackAndroid (iOS mocks it).
  • Loading branch information
sabbaticaldev authored and xotahal committed Dec 7, 2016
1 parent 6cef3d6 commit 042c60e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Toolbar/Toolbar.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,7 @@ function getStyles(props, context, state) {
};
}
const addBackButtonListener = (callback) => {
if (Platform.OS !== 'ios') {
return BackAndroid.addEventListener('closeRequested', callback);
}

return () => {};
return BackAndroid.addEventListener('closeRequested', callback);
};

class Toolbar extends PureComponent {
Expand Down

0 comments on commit 042c60e

Please sign in to comment.