I am working on organizing the styles for elements in order to enhance readability. Here is the code I have written:
let styles={
search:{
container:{
position:"absolute",
top:0,
},
}
}
After defining the styles, I use them like this:
<View style={styles.search.container}/>
Everything functions correctly except TypeScript throws an error related to style - 'No overload matches this call'.
Can someone guide me on how to suppress this error?