import * as React from 'react'; import { createMaterialTopTabNavigator } from 'react-navigation-tabs'; import Albums from './Shared/Albums'; import Article from './Shared/Article'; import Contacts from './Shared/Contacts'; class AlbumsScreen extends React.Component { static navigationOptions = { tabBarLabel: 'Albums', }; render() { return ; } } class ArticleScreen extends React.Component { static navigationOptions = { tabBarLabel: 'Article', }; render() { return
; } } class ContactsScreen extends React.Component { static navigationOptions = { tabBarLabel: 'Contacts', }; render() { return ; } } export default createMaterialTopTabNavigator( { AlbumsScreen, ArticleScreen, ContactsScreen, }, { lazy: true, tabBarOptions: { style: { backgroundColor: '#5620E4' }, }, } );