Open JeremyBradshaw7 opened 6 years ago
I'm also having this problem - couldn't think what it was to do with (starting on the screen with the slider worked, but navigating to it didn't) so thanks for pointing that out
Any updates on this?
In my case I removed "valueVisibleStyle" from style object of View of customThumb and it worked. Briefly I changed this part:
<Animated.View
onLayout={this._measureThumb}
renderToHardwareTextureAndroid={true}
style={[
{
backgroundColor: thumbTintColor
}, customThumb ? {
position: 'absolute',
backgroundColor: 'transparent',
} : mainStyles.thumb, thumbStyle,
{
transform: [
{ translateX: thumbLeft },
{ translateY: 0 }
],
// remove this line -> ...valueVisibleStyle
}
]}
>
{customThumb}
</Animated.View>
Strange one this - I've found that the thumb is not visible after exposing any sliders (in a View) via the LayoutAnimation API - on Android only. Not sure about the Animated API. Workaround is to avoid animating on Android, but that's not ideal, so could do with a fix.