import React, { Component, PureComponent } from 'react'; import { StyleSheet, View, Text, GestureResponderEvent, ActivityIndicator, Slider, SafeAreaView } from 'react-native'; // import { Button } from 'react-native-vector-icons/FontAwesome'; import { getStatusBarHeight } from '../helper'; import { connect } from 'react-redux'; import actions from '../Actions/actions'; import { Portal } from '../Api/types'; import { bindActionCreators } from 'redux'; type Props = { guid: string portal?: Portal } class Settings extends PureComponent { static navigationOptions = ({ navigation }) => { return { title: 'Настройки', }; }; render() { const { filterLevel } = this.props.settings return ( Мин. Ур.: {filterLevel[0]} Макс. Ур.: {filterLevel[1]} ); } } export default connect((store) => ({ settings: store.settings }), (dispatch) => bindActionCreators(actions, dispatch))(Settings) const styles = StyleSheet.create({ overlay: { flex: 1, padding: 8, }, title: { fontWeight: 'bold', fontSize: 22, }, subtitle: { fontWeight: 'normal', fontSize: 18, } });