import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
Platform,
Dimensions,
Image,
} from 'react-native';
import { Router } from '../App';
import ListItem from './ListItem';
const window = Dimensions.get('window');
export default class CustomNavigationBarExample extends Component {
/**
* This is where we can define any route configuration for this
* screen. For example, in addition to the navigationBar title we
* could add backgroundColor.
*/
static route = {
navigationBar: {
title: 'Custom NavigationBar',
tintColor: '#FFF',
renderBackground: props => (
),
},
};
_goToScreen = name => () => {
this.props.navigator.push(Router.getRoute(name));
};
render() {
return (
Examples
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fafafa',
},
title: {
fontWeight: 'bold',
fontSize: 32,
margin: 8,
},
version: {
fontSize: 18,
},
bgImage: {
flex: 1,
},
});