Skip to content

Commit

Permalink
[RNMobile] Align Range Control (Android Slider component) to the left…
Browse files Browse the repository at this point in the history
… of it's container (#25660)

Added margin left to move the Slider to the left on Android
  • Loading branch information
jd-alexander authored Oct 12, 2020
1 parent d0bf065 commit 15f4799
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ class BottomSheetRangeCell extends Component {
ref={ ( slider ) => {
this.sliderRef = slider;
} }
style={ styles.slider }
style={
isIOS ? styles.sliderIOS : styles.sliderAndroid
}
accessibilityRole={ 'adjustable' }
/>
{ shouldDisplayTextInput && (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
.slider {
.sliderIOS {
flex-grow: 1;
}

.sliderAndroid {
flex-grow: 1;
margin-left: -6px;
}

.sliderTextInput {
min-height: 25px;
align-self: center;
Expand Down

0 comments on commit 15f4799

Please sign in to comment.