/* @flow */ import * as React from 'react'; import { View, StyleSheet, Alert } from 'react-native'; import { Avatar, withTheme, Body } from 'react-native-ios-kit'; import withSafeArea from '../withSafeArea'; import type { Theme } from 'react-native-ios-kit/types'; type Props = { theme: Theme, }; class AvatarExample extends React.Component { render() { return ( Default Url prop Initials With onPress handler Alert.alert('Hello')} /> ); } } export default withTheme(withSafeArea(AvatarExample)); const styles = StyleSheet.create({ row: { flexDirection: 'row', padding: 10, borderBottomColor: '#333', borderBottomWidth: StyleSheet.hairlineWidth, justifyContent: 'space-between', alignItems: 'center', }, });