diff options
Diffstat (limited to 'src/Components/Settings.tsx')
-rw-r--r-- | src/Components/Settings.tsx | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/src/Components/Settings.tsx b/src/Components/Settings.tsx index ca481a9..ffc176c 100644 --- a/src/Components/Settings.tsx +++ b/src/Components/Settings.tsx @@ -23,28 +23,30 @@ class Settings extends PureComponent<Props> { const { filterLevel } = this.props.settings return ( <SafeAreaView style={styles.overlay}> - <Text>Мин. Ур.: {filterLevel[0]}</Text> - <Slider - style={{ width: 150, height: 40 }} - minimumValue={0} - maximumValue={filterLevel[1]} - value={filterLevel[0]} - step={1} - minimumTrackTintColor="#028ce3" - maximumTrackTintColor="#000000" - onSlidingComplete={this.props.setLevelFrom} - /> - <Text>Макс. Ур.: {filterLevel[1]}</Text> - <Slider - style={{ width: 150, height: 40 }} - minimumValue={filterLevel[0]} - maximumValue={8} - value={filterLevel[1]} - step={1} - minimumTrackTintColor="#028ce3" - maximumTrackTintColor="#000000" - onSlidingComplete={this.props.setLevelTo} - /> + <View style={styles.container}> + <Text>Мин. Ур.: {filterLevel[0]}</Text> + <Slider + style={{ height: 40 }} + minimumValue={0} + maximumValue={filterLevel[1]} + value={filterLevel[0]} + step={1} + minimumTrackTintColor="#028ce3" + maximumTrackTintColor="#000000" + onSlidingComplete={this.props.setLevelFrom} + /> + <Text>Макс. Ур.: {filterLevel[1]}</Text> + <Slider + style={{ height: 40 }} + minimumValue={filterLevel[0]} + maximumValue={8} + value={filterLevel[1]} + step={1} + minimumTrackTintColor="#028ce3" + maximumTrackTintColor="#000000" + onSlidingComplete={this.props.setLevelTo} + /> + </View> </SafeAreaView> ); } @@ -57,6 +59,9 @@ const styles = StyleSheet.create({ flex: 1, padding: 8, }, + container: { + margin: 8, + }, title: { fontWeight: 'bold', fontSize: 22, |