react-native-slider
react-native-slider copied to clipboard
StyleSheet.compose() deprecated
react-native-web has deprecated StyleSheet.compose()
https://github.com/necolas/react-native-web/releases#:~:text=%5Bchange%5D%20Deprecate%20StyleSheet.compose().%20Use%20style%20array%20syntax.
I saw that a previous PR (#563) removed usage of compose()
for this deprecation, but a subsequent PR (#555) re-added the usage of compose()
.
We are upgrading react-native and are now receiving a deprecation warning.
Environment
- which version of react & react-native are you using? react: 18.3.1 react-native: 0.74.2 react-native-web: 0.19.10
Description
We are receiving the warning: StyleSheet.compose(a, b) is deprecated; use array syntax, i.e., [a,b].
Reproducible Demo
Any usage of Slider
results in the warning.
<Slider
maximumTrackTintColor={trackTintColor}
minimumTrackTintColor={trackTintColor}
thumbStyle={styles.thumb}
thumbTintColor={thumbTintColor}
style={props.style}
{...props}
/>