Skip to content

Commit

Permalink
fix: onStateChange returns incorrect data in old arch on some rn ve…
Browse files Browse the repository at this point in the history
…rsions (#797)
  • Loading branch information
henninghall authored Apr 12, 2024
1 parent 9f78002 commit a872682
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/DatePickerAndroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ class DatePickerAndroid extends React.PureComponent {

if (props.modal) return null

return <NativeComponent {...props} onChange={this._onChange} />
return (
<NativeComponent
{...props}
onChange={this._onChange}
onStateChange={this._onSpinnerStateChanged}
/>
)
}

getId = () => {
Expand Down

0 comments on commit a872682

Please sign in to comment.