blob: daf32163841dd4def14dbb9ff27edfc93c822cb3 (
plain) (
tree)
|
|
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,
}
});
|