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

Error while updating property maximumValue of a view managed by RCTSlider #23247

Closed
ithustle opened this issue Feb 1, 2019 · 3 comments
Closed
Labels
Bug Component: Slider Platform: Linux Building on Linux. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@ithustle
Copy link

ithustle commented Feb 1, 2019

Environment

React Native Environment Info:
System:
OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
Memory: 1.69 GB / 11.60 GB
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 8.10.0 - /usr/bin/node
npm: 3.5.2 - /usr/bin/npm
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5199772
npmPackages:
react: ^16.6.3 => 16.7.0
react-native: ^0.58.3 => 0.58.3
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

Description

Touching to open a player from miniplayer. If I was playing musics from cloud (streaming) works fine but If I playing from local musics, this error is throwing:

screenshot_20190201-124859

Reproducible Demo

This function is to open animating the player

_abrePlayer(estado) {

        this.state.height = estado ? height : 60 
        this.state._value = estado ? 150 : 0;
        this.state.opacity = estado ? 0 : 1;

        Animated.timing(this.state.animatedValue, {
            toValue: estado ? 1 : 0,
            duration: 2000,
            useNativeDriver: true
        }).start();
    }

on render()

if (this.state._value > 100) {
            renderPlayer = 
            <View style={[styles.containerMiniPlayer, { height: this.state.height }]}>
                { this.renderPlayer() }
            </View>
            renderMiniPlayer = null;
        } else {
            renderPlayer = null;
            renderMiniPlayer = 
            <View style={[styles.containerMiniPlayer, { height: this.state.height }]}>
                { this.renderMiniPlayer() }
            </View>
        }
@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write [skip envinfo] under Environment to let us know.

@ithustle
Copy link
Author

ithustle commented Feb 1, 2019

CC: @kelset

@stale
Copy link

stale bot commented Aug 2, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Aug 2, 2019
@ithustle ithustle closed this as completed Aug 2, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Aug 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: Slider Platform: Linux Building on Linux. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants