-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Animated: Update Abstract Component Flow Type
Summary: Updates the return type of `createAnimatedComponent` to reflect the new behavior (where we forward the ref to the internal component). I also improved the type annotation for `Props` so that we can still enforce that only valid prop names are supplied. (We still do not check the prop values because we do not currently have a good strategy for typing the "animated versions" of those.) Changelog: [General] [Changed] - Flow types for Animated components now validates prop names and yields the new component instance. Reviewed By: TheSavior Differential Revision: D18290473 fbshipit-source-id: 8c629ab6aff009ebe6dabca1683c99a357869977
- Loading branch information
1 parent
66e72bb
commit e22946c
Showing
3 changed files
with
8 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters