A simple screen displays a summary of the purchase just confirmed:
/*** src/screens/PaymentConfirmation ***/
import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { NavigationActions } from 'react-navigation';
import { Icon, Title, Text, ListItem, Badge, Button } from 'native-base';
import * as UserActions from '../reducers/user';
import * as ProductActions from '../reducers/products';
import * as PaymentsActions from '../reducers/payments';
class PaymentConfirmation extends React.Component {
static navigationOptions = {
drawerLabel: 'MyCart',
tabBarIcon: () => <Icon name="cart" />,
};
componentWillMount...