question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

4.2.2 broke android default value

See original GitHub issue

Environment

Android react-native-slider 4.2.2

Description

Upgrading from 4.2.1 to 4.2.2 broke the slider’s default value. Using value={3} (for example), minimumValue={1}, and maximumValue={5} will render the slider with a default value of 3 on 4.2.1, but 1 on 4.2.2

Reproducible Demo

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
cristianoccazinspcommented, Apr 27, 2022

Looks like onValueChange is called right after the component mounts (Android only) with the onValueChange instead of w/e was set to value.

0reactions
JBlazcommented, Jun 6, 2022

This happens for me as well on 4.2.0

What is strange is on certain build devices it works and others it does not. If I build the same code on one computer vs another I get a different result. Sometimes it works properly and sometimes it behaves as the OP said.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CheckBoxPreference default value not working [36914268]
I had that problem on Android 4.2.2. ... Checkbox preference does not initially exist at all if the default value is set to...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix the issue for the current project, click Run > Edit Configurations and change the default JUnit configuration to only include the...
Read more >
my status bar in android 4.2.2 emulator is broken
Today I found the status bar in android 4.2.2 emulator is broken.I cannot pull it down. I have no idea what happened. android...
Read more >
Android App build error - I have no idea what to do
:@react-native-firebase_app:firebase.bom using default value: 28.1.0 ... minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2.
Read more >
Secure USB debugging in Android 4.2.2
Official release notes for Android 4.2.2 don't seem to be available ... The ADB host authentication functionality is enabled by default when ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found