Header
We want to reuse a custom header between several screens. That's why it's best to create a separate component for it and import it in those screens:
/*** src/components/Header ***/ import React from 'react'; import { View, Image, StyleSheet } from 'react-native'; import { Icon, Button } from 'native-base'; import { Platform } from 'react-native'; export default class Header extends React.Component { render() { return ( <View style={styles.container}> { Platform.OS === 'android' && <Button transparent onPress={this.props.onMenuButtonPress}> <Icon android='md-menu' style={styles.menuIcon}/> </Button> } <Image source={require('../../img/logo.png')} style={styles.logo} /> { Platform.OS === 'android' && <Button onPress={this.props.onCameraButtonPress} transparent> <Icon name='camera' style={styles.cameraIcon...