Handle cancel
This commit is contained in:
1 parent
f564eab7d0
commit
a6d082dffc
1 file changed
+4
-1
@@ -119,7 +119,10 @@ class TempReminderPicker extends Component {
|
||||
enabled: true
|
||||
})
|
||||
}}
|
||||
onCancel={() => this.setState({ isTimePickerVisible: false })}
|
||||
onCancel={() => {
|
||||
this.setState({ isTimePickerVisible: false })
|
||||
if (!this.state.time) this.setState({enabled: false})
|
||||
}}
|
||||
/>
|
||||
</View>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user