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>
);
}