[flow] createAnimatedComponent signature
See original GitHub issueflow is giving me a warning if the root component in render is Animated.View (or any other animated).
render() {
return (<Animated.View />);
}
74: render() {
^ return. Missing annotation
i think the problem is in the signature for the following method
function createAnimatedComponent(Component: any): any { ... }
given that all animated are generated using it
module.exports = {
...AnimatedImplementation,
View: AnimatedImplementation.createAnimatedComponent(View),
Text: AnimatedImplementation.createAnimatedComponent(Text),
Image: AnimatedImplementation.createAnimatedComponent(Image),
};
is there any reason why we have any instead of React.Element /?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How to use the react-native-reanimated ... - Snyk
To help you get started, we've selected a few react-native-reanimated.createAnimatedComponent examples, based on popular ways it is used in public projects.
Read more >react-native/CHANGELOG.md - UNPKG
88, - Export Flow type for deceleration rate for use in other files to keep ... 604, - CreateAnimatedComponent: removed deprecated lifecycles usage ......
Read more >How to use Flow with React.createRef()? - Stack Overflow
Cannot instantiate `Ref` because in type argument `ElementType`: - Either a callable signature is missing in `HTMLDivElement` [1] but exists in ...
Read more >TypeError: el.getNode is not a function - Stack Overflow
I upgraded react-native version from v0.61.0 to 0.65.0 using rn community upgrade helper . After making changes in the package.json file, ...
Read more >Fullstack React Native
The way data flows from parent to child in React Native is through props. ... success, geo_error?, geo_options?) is the full function signature...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I believe @yungsters and @frantic are working on the flow types for the standard library stuff now, so tagging them here because Animated.View is a good thing to make sure it flowtypes correctly.
Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.