Skip to content

Commit

Permalink
ReactSlider extends AppCompatSeekBar (#23304)
Browse files Browse the repository at this point in the history
Summary:
Google recommends to use AppCompat widgets, and this PR changes ReactSlider to extend AppCompatSeekBar.

[Android] [Changed] - ReactSlider extends AppCompatSeekBar
Pull Request resolved: facebook/react-native#23304

Differential Revision: D13973636

Pulled By: cpojer

fbshipit-source-id: 9aa160b186fcea593224c5760a2de0fc3a2b6f85
  • Loading branch information
james-watkin committed Feb 6, 2019
1 parent 2cae12d commit 73295e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReactSlider.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import android.content.Context;
import android.os.Build;
import android.support.v7.widget.AppCompatSeekBar;
import android.util.AttributeSet;
import android.widget.SeekBar;
import javax.annotation.Nullable;

/**
Expand All @@ -20,7 +20,7 @@
*
* <p>Note that the slider is _not_ a controlled component (setValue isn't called during dragging).
*/
public class ReactSlider extends SeekBar {
public class ReactSlider extends AppCompatSeekBar {

/**
* If step is 0 (unset) we default to this total number of steps. Don't use 100 which leads to
Expand Down

0 comments on commit 73295e0

Please sign in to comment.