You can test some of ways for solve your problem, hope this work:
1 : style={styles.yourStyle as any} maybe you should do the trick!
2 : I can't see how you implement your styles but you can test something like this?
import { StyleSheet, TextStyle, ViewStyle } from "react-native";
type Style = {
container: ViewStyle;
title: TextStyle;
icon: ImageStyle;
};
export default StyleSheet.create<Style>({
container: {
flex: 1
},
title: {
color: red
},
icon: {
width: 10,
height: 10
}
});
If you need to know more about React, Its recommended to join React JS Course today.