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