Adjust slider color on Android
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import TrackPlayer from 'react-native-track-player';
|
import TrackPlayer from 'react-native-track-player';
|
||||||
import styled from 'styled-components/native';
|
import styled from 'styled-components/native';
|
||||||
import { Text } from 'react-native';
|
import { Text, Platform } from 'react-native';
|
||||||
import Slider from '@react-native-community/slider';
|
import Slider from '@react-native-community/slider';
|
||||||
import { THEME_COLOR } from 'CONSTANTS';
|
import { THEME_COLOR } from 'CONSTANTS';
|
||||||
|
|
||||||
@@ -74,6 +74,7 @@ export default class ProgressBar extends Component<{}, State> {
|
|||||||
onValueChange={this.handleGesture}
|
onValueChange={this.handleGesture}
|
||||||
onSlidingComplete={this.handleEndOfGesture}
|
onSlidingComplete={this.handleEndOfGesture}
|
||||||
minimumTrackTintColor={THEME_COLOR}
|
minimumTrackTintColor={THEME_COLOR}
|
||||||
|
thumbTintColor={Platform.OS === 'android' ? THEME_COLOR : undefined}
|
||||||
disabled={!duration}
|
disabled={!duration}
|
||||||
/>
|
/>
|
||||||
<NumberBar>
|
<NumberBar>
|
||||||
|
|||||||
Reference in New Issue
Block a user