Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Kavuma committed Sep 10, 2024
1 parent aef382a commit 219e013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DateTimePickerAndroid.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function open(props: AndroidNativeProps) {

function dismiss(mode: AndroidNativeProps['mode']): Promise<boolean> {
// $FlowFixMe - `AbstractComponent` [1] is not an instance type.
return pickers[mode].dismiss();
return pickers[mode]?.dismiss();
}

export const DateTimePickerAndroid = {open, dismiss};

0 comments on commit 219e013

Please sign in to comment.