From 042c60e128d69b82a1643f84960bfffc64aba56f Mon Sep 17 00:00:00 2001 From: Alan Leal Date: Wed, 7 Dec 2016 10:23:49 -0200 Subject: [PATCH] Remove code specific to Android in Toolbar Search (#54) All platforms (iOS, android and 3rd party windows) implements BackAndroid (iOS mocks it). --- src/Toolbar/Toolbar.react.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Toolbar/Toolbar.react.js b/src/Toolbar/Toolbar.react.js index 0a679a95..744c0e92 100644 --- a/src/Toolbar/Toolbar.react.js +++ b/src/Toolbar/Toolbar.react.js @@ -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 {