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

No overload matches this call in React Native

$
0
0

I want to separate the styles for elements to make them easier to read. I wrote next code

let styles={
    search:{
        container:{
            position:"absolute",
            top:0,
        },
    }
}

And then use as

<View style={styles.search.container}/>

Everything work fine but TypeScript throw error for style - 'No overload matches this call'

Tell me please how to suppress this error?


Viewing all articles
Browse latest Browse all 6208

Trending Articles



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