Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6208

What is proper replacement for React.ChildrenArray in typescript?

$
0
0

Why does the following react-native code give typescript error?

type ContainerProps = BaseProps & {
    children: React.ChildrenArray<React.ReactElement<any>>;
    withGutter?: boolean;
};

any Namespace 'React' has no exported member 'ChildrenArray'.ts(2694)

What is the correct expression instead? This was originally flow based js code being converted to typescript...


Viewing all articles
Browse latest Browse all 6208

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>