import * as React from 'react'; import {View} from "react-native"; import {Text, withTheme} from 'react-native-paper'; import AuthenticatedScreen from "../../components/AuthenticatedScreen"; 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) { return ( {data.first_name} {Math.random()} ) } render() { return ( this.getScreen(data)} /> ); } } export default withTheme(ProfileScreen);