diff options
author | Alexander NeonXP Kiryukhin <a.kiryukhin@mail.ru> | 2019-06-11 02:51:30 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <a.kiryukhin@mail.ru> | 2019-06-11 02:51:30 +0300 |
commit | f12a3bccd8c726e59e92123a3d8ef1f5a73d7253 (patch) | |
tree | d4b6e126c0f216972562621608a4ba97800a94bf /src/Components/Settings.tsx | |
parent | b7810c3d6c0164def328c60244bfbd20d7935bc3 (diff) |
Fixes
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, |