In react-native, using dynamic styles like so:
const myComponent = () => {
const styles = createStyles(theme)
return (
<View style={styles.container}>
</View>
)
}
const createStyles = theme => StyleSheet.create({
container: {
backgroundColor: theme.background,
},
})
How do i avoid getting eslint warnings from react-native/no-unused-styles ?