From 49517e8aa639b3114623648a06eaf01311271d56 Mon Sep 17 00:00:00 2001 From: Ondrej Vana Date: Sun, 8 Dec 2019 01:38:33 -0800 Subject: [PATCH] fix: Hide HomeLocationsPicker on back button / backdrop press --- components/sign_up/HomeLocationsPicker.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/sign_up/HomeLocationsPicker.js b/components/sign_up/HomeLocationsPicker.js index f344778..93a03e7 100644 --- a/components/sign_up/HomeLocationsPicker.js +++ b/components/sign_up/HomeLocationsPicker.js @@ -97,6 +97,8 @@ class HomeLocationsPicker extends React.Component { { - // this.setState({ visible: false }) - // } + onCancel = () => { + this.setState({ visible: false }) + } } const styles = StyleSheet.create({ @@ -160,7 +162,7 @@ const styles = StyleSheet.create({ flexDirection: 'row', backgroundColor: '#fff2', borderRadius: Layout.window.hp(2.75), - alignItems: 'center' + maxWidth: '100%' }, selectedItemText: { color: '#fff',