Skip to content

Commit

Permalink
fix: reminder fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanRos committed Jul 24, 2024
1 parent 726ae57 commit 77519f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion expo/src/components/TimePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const TimePicker = ({ visible, selectDate }) => {

useEffect(() => {
if (visible) setDate(new Date(Date.now() + 60 * 1000));
setShow(visible);
}, [visible]);

if (Platform.OS === "ios") {
return (
<Modal visible={visible} animationType="fade" transparent>
Expand All @@ -39,7 +41,11 @@ const TimePicker = ({ visible, selectDate }) => {
}}
/>
<ButtonsContainer>
<BackButton content="Retour" bold onPress={() => selectDate(null)} />
<BackButton
content="Retour"
bold
onPress={() => selectDate(null)}
/>
<ButtonPrimary
content="Valider"
onPress={() => {
Expand Down

0 comments on commit 77519f2

Please sign in to comment.