-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ryan Saperstein
committed
Aug 20, 2024
1 parent
503848f
commit 4137d2b
Showing
15 changed files
with
2,163 additions
and
1,386 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
white: '#fff', | ||
black: '#000' | ||
} | ||
export default { | ||
white: '#fff', | ||
black: '#000', | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
import React from 'react'; | ||
import FontAwesome5 from '@expo/vector-icons/FontAwesome5'; | ||
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; | ||
import SecondScreen from '../screens/secondScreen/secondScreen'; | ||
import StackNavigator from './StackNavigator'; | ||
|
||
const Tab = createBottomTabNavigator(); | ||
|
||
function TabBarIcon(props: {name: string, color: string}) { | ||
return ( | ||
<FontAwesome5 | ||
name={props.name} | ||
size={26} | ||
style={{ marginBottom: -3 }} | ||
color={props.color} | ||
/> | ||
); | ||
} | ||
|
||
export default function TabNavigator() { | ||
return( | ||
<Tab.Navigator initialRouteName="Home"> | ||
<Tab.Screen name="Stack" component={StackNavigator} | ||
options={{tabBarIcon: ({ focused }) => ( | ||
<TabBarIcon | ||
color={focused ? 'blue' : 'black'} | ||
name='circle' | ||
/> | ||
), | ||
tabBarLabel: 'Home', | ||
title: '', | ||
headerShown: false, | ||
}} /> | ||
<Tab.Screen name="secondScreen" component={SecondScreen} | ||
options={{ tabBarIcon: ({ focused }) => ( | ||
<TabBarIcon color={focused ? 'blue' : 'black'} name='square' /> | ||
), | ||
tabBarLabel: 'Second screen', | ||
title: '', | ||
headerShown: false, | ||
}} /> | ||
</Tab.Navigator> | ||
) | ||
} | ||
import React from 'react' | ||
import FontAwesome5 from '@expo/vector-icons/FontAwesome5' | ||
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs' | ||
import SecondScreen from '../screens/secondScreen/secondScreen' | ||
import StackNavigator from './StackNavigator' | ||
|
||
const Tab = createBottomTabNavigator() | ||
|
||
function TabBarIcon(props: { name: string; color: string }) { | ||
return ( | ||
<FontAwesome5 name={props.name} size={26} style={{ marginBottom: -3 }} color={props.color} /> | ||
) | ||
} | ||
|
||
export default function TabNavigator() { | ||
return ( | ||
<Tab.Navigator initialRouteName='Home'> | ||
<Tab.Screen | ||
name='Stack' | ||
component={StackNavigator} | ||
options={{ | ||
tabBarIcon: ({ focused }) => ( | ||
<TabBarIcon color={focused ? 'blue' : 'black'} name='circle' /> | ||
), | ||
tabBarLabel: 'Home', | ||
title: '', | ||
headerShown: false, | ||
}} | ||
/> | ||
<Tab.Screen | ||
name='secondScreen' | ||
component={SecondScreen} | ||
options={{ | ||
tabBarIcon: ({ focused }) => ( | ||
<TabBarIcon color={focused ? 'blue' : 'black'} name='square' /> | ||
), | ||
tabBarLabel: 'Second screen', | ||
title: '', | ||
headerShown: false, | ||
}} | ||
/> | ||
</Tab.Navigator> | ||
) | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
import React from 'react'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
|
||
import HomeScreen from '../screens/home/home'; | ||
import SecondScreen from '../screens/secondScreen/secondScreen'; | ||
|
||
const Stack = createNativeStackNavigator(); | ||
|
||
export default function StackNavigator() { | ||
return ( | ||
<Stack.Navigator initialRouteName="homeScreen"> | ||
<Stack.Screen | ||
name="homeScreen" | ||
component={HomeScreen} | ||
options={{ title: '', headerShown: false }} | ||
/> | ||
<Stack.Screen | ||
name="secondScreen" | ||
component={SecondScreen} | ||
options={{ title: '' }} | ||
/> | ||
</Stack.Navigator> | ||
) | ||
} | ||
import React from 'react' | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack' | ||
|
||
import HomeScreen from '../screens/home/home' | ||
import SecondScreen from '../screens/secondScreen/secondScreen' | ||
|
||
const Stack = createNativeStackNavigator() | ||
|
||
export default function StackNavigator() { | ||
return ( | ||
<Stack.Navigator initialRouteName='homeScreen'> | ||
<Stack.Screen | ||
name='homeScreen' | ||
component={HomeScreen} | ||
options={{ title: '', headerShown: false }} | ||
/> | ||
<Stack.Screen name='secondScreen' component={SecondScreen} options={{ title: '' }} /> | ||
</Stack.Navigator> | ||
) | ||
} |
Oops, something went wrong.