Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StyleSheet.compose() deprecated #614

Closed
kholland950 opened this issue Jun 26, 2024 · 2 comments · Fixed by #625
Closed

StyleSheet.compose() deprecated #614

kholland950 opened this issue Jun 26, 2024 · 2 comments · Fixed by #625
Assignees
Labels
bug report Something isn't working

Comments

@kholland950
Copy link

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].
Screenshot 2024-06-26 at 1 44 53 PM

Reproducible Demo

Any usage of Slider results in the warning.

    <Slider
      maximumTrackTintColor={trackTintColor}
      minimumTrackTintColor={trackTintColor}
      thumbStyle={styles.thumb}
      thumbTintColor={thumbTintColor}
      style={props.style}
      {...props}
    />
@kholland950 kholland950 added the bug report Something isn't working label Jun 26, 2024
@BENJAMINmlp
Copy link

who's head is side bar in

@totallytotallyamazing
Copy link

I've been having this exact same issue for some time now. Any new updates to this bug issue?
Thanks!

@draggie draggie self-assigned this Aug 23, 2024
@draggie draggie mentioned this issue Aug 23, 2024
3 tasks
@BartoszKlonowski BartoszKlonowski linked a pull request Aug 26, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants