Skip to content

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

Closed
@ithustle

Description

@ithustle

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>
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugComponent: SliderPlatform: LinuxBuilding on Linux.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions