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

Typescript - JSX element type 'Wrapper' does not have any construct or call signatures

$
0
0

I am using React Native + Typescript app and getting an error on Wrapper variable.

JSX element type 'Wrapper' does not have any construct or call signatures.  TS2604
import { StyleSheet, View } from 'react-native';

export function BasicLayout({ children, isLoggedIn, isActualUser, scrollable = true }: Props) {
  const Wrapper = scrollable ? ScrollView : View;
  return (
    <View style={styles.container}>
      {!isLoggedIn || !isActualUser ? <HeaderWrapper /> : <HeaderPrivate />}
      <Wrapper style={styles.container} >
        {children}
        <FooterLinks />
        <FooterCopyright />
      </Wrapper>
    </View>
  );
}

Viewing all articles
Browse latest Browse all 6211

Trending Articles



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