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?