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

"renderTrackMarkComponent" elements are not visible #459

Open
jmgarciasanti opened this issue Nov 17, 2024 · 3 comments
Open

"renderTrackMarkComponent" elements are not visible #459

jmgarciasanti opened this issue Nov 17, 2024 · 3 comments

Comments

@jmgarciasanti
Copy link

Track marks rendered with "renderTrackMarkComponent" are not visible after upgrade to Expo SDK 52 (maybe because the implicit upgrade to React Native 0.76.2).

The problem is related with "valueVisibleStyle" changes from {opacity:0} to {} when "allMeasured" is true

This section is re-rendered but seems to keep the previous value of {opacity:0}
<Animated.View
key={track-mark-${i}}
style={[
styles.renderThumbComponent,
{
transform: [
{
translateX: value,
},
{
translateY: 0,
},
],
...valueVisibleStyle,
},
]}>
{renderTrackMarkComponent(i)}
</Animated.View>

If I remove the "...valueVisibleStyle" it works again.

@snakone
Copy link

snakone commented Dec 2, 2024

same here, solved it by removing line(451)

if (!allMeasured) { valueVisibleStyle.opacity = 0; }

from node_modules@miblanchard\react-native-slider\lib\index.js

@miblanchard seems like it's working totally fine without those lines, any updates? 🙏

@ItsRD
Copy link

ItsRD commented Dec 3, 2024

I've the same issue after upgrading to Expo 52.

@brudijoe
Copy link

brudijoe commented Dec 8, 2024

I have the same issue. I upgraded from react-native 0.71.9 to 0.76.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants