Files
react-native/Libraries
Mats Byrkjeland bb623e6983 Allow Animation EndResult callback to return Promise (#25793)
Summary:
I am sending an asynchronous function as callback to the `.start` method of `Animation.parallel([...]).start(callback)`. Flow does not like this, as the `EndCallback` type is saying that these callbacks must return `void`. Since my callback returns `Promise<void>` this results in an error.

Does it really matter what the callback returns?

## Changelog

[General] [Changed] - Make Animation EndCallback type allow any return value
Pull Request resolved: https://github.com/facebook/react-native/pull/25793

Test Plan: I have run `yarn flow`, which reported no errors.

Reviewed By: cpojer

Differential Revision: D16515465

Pulled By: osdnk

fbshipit-source-id: 420d29d262b65471e6e1ad4b5a126bf728336260
2019-07-26 03:50:28 -07:00
..
2019-07-23 03:23:11 -07:00
2019-05-20 18:05:55 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00
2019-07-19 21:43:05 -07:00
2019-07-23 03:23:11 -07:00
2019-07-25 15:04:04 -07:00
2019-06-07 06:39:28 -07:00
2019-07-23 03:23:11 -07:00
2019-07-23 03:23:11 -07:00