This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Text, Image, StyleSheet, View } from 'react-native'; | |
export default function Icon({ name, color, style, isRouteActive}) { | |
function handleImage() { | |
if(name === 'recruitment') return ( | |
<View> | |
<Image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { View, Image } from 'react-native'; | |
export default function Icon({name, color, isRouteActive}) { | |
function handleImage() { | |
if(name === 'recruitment') return( | |
<View> | |
<Image | |
style={{width: 20, height: 20}} | |
source={require('../assets/megaphone.png')} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Icon from './components/Icon'; | |
const TabNavigator = createBottomTabNavigator( | |
{ | |
Recruitment: { | |
screen: Recruitment, | |
navigationOptions: { | |
tabBarIcon: ({tintColor}) => ( | |
<Icon name="recruitment" color={tintColor} /> | |
), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TabNavigator = createBottomTabNavigator({ | |
Recruitment | |
)} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Rect from 'react'; | |
import { Router } from './routes'; | |
export default function App() { | |
return <Router /> | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { createBottomTabNavigator, createAppContainer } from 'react-navigation'; | |
import Recruitment from './pages/Recruitment'; | |
import Fields from './pages/Fields'; | |
import Notifications from './pages/Notifications'; | |
import User from './pages/User'; | |
const TabNavigator = createBottomTabNavigator({ | |
Recruitment, | |
Fields, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Text } from 'react-native'; | |
export default function Recruitment() { | |
return( | |
<Text>Recruitment</Text> | |
) | |
} |