import * as React from 'react'; import {ScrollView, StyleSheet} from "react-native"; import {Avatar, Button, Card, Divider, List, withTheme} from 'react-native-paper'; import AuthenticatedScreen from "../../components/AuthenticatedScreen"; import {openBrowser} from "../../utils/WebBrowser"; type Props = { navigation: Object, theme: Object, } type State = {} class ProfileScreen extends React.Component { state = {}; colors: Object; constructor(props) { super(props); this.colors = props.theme.colors; } getScreen(data: Object) { console.log(data); return ( } /> INFORMATIONS PERSONNELLES } /> } /> } /> } /> ETAT COTISATION {this.getMembershipItem(data.validity)} ) } getMembershipItem(state: boolean) { return ( } /> ); } getFieldValue(field: ?string) { return field !== null ? field : 'NON RENSEIGNÉ'; } render() { return ( this.getScreen(data)} /> ); } } const styles = StyleSheet.create({ card: { margin: 10, }, icon: { backgroundColor: 'transparent' }, editButton: { marginLeft: 'auto' } }); export default withTheme(ProfileScreen);