/**
* @flow
*/
import React from 'react'
import { Button, ScrollView } from 'react-native'
import { SafeAreaView, StackNavigator, TabNavigator } from 'react-navigation'
import Ionicons from 'react-native-vector-icons/Ionicons'
import SampleText from './SampleText'
const MyNavScreen = ({ navigation, banner }) => (
{banner}
)
const MyHomeScreen = ({ navigation }) => (
)
const MyProfileScreen = ({ navigation }) => (
)
const MyNotificationsSettingsScreen = ({ navigation }) => (
)
const MySettingsScreen = ({ navigation }) => (
)
var bitcoin = require('bitcoinjs-lib')
var myString = bitcoin.ECPair.makeRandom().toWIF()
const TabNav = TabNavigator(
{
MainTab: {
screen: MyHomeScreen,
path: '/',
navigationOptions: {
title: 'Welcome1 ' + myString,
tabBarLabel: 'Transactions',
tabBarIcon: ({ tintColor, focused }) => (
)
}
},
SettingsTab: {
screen: MySettingsScreen,
path: '/settings',
navigationOptions: {
title: 'Settings',
tabBarIcon: ({ tintColor, focused }) => (
)
}
}
},
{
tabBarPosition: 'bottom',
animationEnabled: false,
swipeEnabled: false
}
)
const SecondaryBottomTabs = StackNavigator({
Root: {
screen: TabNav
},
NotifSettings: {
screen: MyNotificationsSettingsScreen,
navigationOptions: {
title: 'Notifications'
}
},
Profile: {
screen: MyProfileScreen,
path: '/people/:name',
navigationOptions: ({ navigation }) => {
title: `${navigation.state.params.name}'s Profile!`
}
}
})
export default SecondaryBottomTabs