summaryrefslogtreecommitdiff
path: root/src/Components/Settings.tsx
blob: daf32163841dd4def14dbb9ff27edfc93c822cb3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React, { Component, PureComponent } from 'react';
import { StyleSheet, View, Text, GestureResponderEvent, ActivityIndicator } 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<Props> {
    static navigationOptions = ({ navigation }) => {
        return {
            title: 'Настройки',
        };
    };

    render() {
        return (
            <View style={styles.overlay}>
                <Text>{JSON.stringify(this.props)}</Text>
            </View>
        );
    }
}

export default connect((store) => ({}), (dispatch) => bindActionCreators(actions, dispatch))(Settings)

const styles = StyleSheet.create({
    overlay: {
        flex: 1,
        padding: 8,
    },
    title: {
        fontWeight: 'bold',
        fontSize: 22,
    },
    subtitle: {
        fontWeight: 'normal',
        fontSize: 18,
    }
});