diff --git a/screens/Amicale/ProfileScreen.js b/screens/Amicale/ProfileScreen.js index 7c77f09..b1df254 100644 --- a/screens/Amicale/ProfileScreen.js +++ b/screens/Amicale/ProfileScreen.js @@ -1,20 +1,19 @@ import * as React from 'react'; -import {View} from "react-native"; -import {Text, withTheme} from 'react-native-paper'; +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 = { -} +type State = {} class ProfileScreen extends React.Component { - state = { - }; + state = {}; colors: Object; @@ -24,14 +23,84 @@ class ProfileScreen extends React.Component { } getScreen(data: Object) { - + console.log(data); return ( - - {data.first_name} {Math.random()} - + + + } + /> + + + + INFORMATIONS PERSONNELLES + } + /> + } + /> + } + /> + } + /> + + + + + + + + + + + ETAT COTISATION + {this.getMembershipItem(data.validity)} + + + + ) } + getMembershipItem(state: boolean) { + return ( + } + /> + ); + } + + getFieldValue(field: ?string) { + return field !== null + ? field + : 'NON RENSEIGNÉ'; + } + render() { return ( { /> ); } - } +const styles = StyleSheet.create({ + card: { + margin: 10, + }, + icon: { + backgroundColor: 'transparent' + }, + editButton: { + marginLeft: 'auto' + } + +}); + export default withTheme(ProfileScreen);