aakash2310

Untitled

Apr 9th, 2023
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. return (
  2. <BottomTab.Navigator
  3. screenOptions={{headerShown: false}}
  4. tabBar={tabsProps => (
  5. <>
  6. <BottomTabBar {...tabsProps} />
  7. </>
  8. )}
  9. initialRouteName="Home">
  10. <BottomTab.Screen
  11. name="Home"
  12. options={{
  13. tabBarIcon: ({color, size}) => (
  14. <Icon name="home" color={color} size={size} />
  15. ),
  16. tabBarLabel: () => null,
  17. }}
  18. component={Home}
  19. />
  20. <BottomTab.Screen name="Search"
  21. options={{
  22. tabBarIcon: ({color, size}) => (
  23. <Icon name="search" color={color} size={size} />
  24. ),
  25. tabBarLabel: () => null,
  26. }}
  27. component={Search} />
  28. <BottomTab.Screen name="Mint"
  29. options={{
  30. tabBarIcon: ({color, size}) => (
  31. <Icon name="plus-square-o" color={color} size={size} />
  32. ),
  33. tabBarLabel: () => null,
  34. }}
  35. component={Mint} />
  36. <BottomTab.Screen name="Activities"
  37. options={{
  38. tabBarIcon: ({color, size}) => (
  39. <Icon name="heart" color={color} size={size} />
  40. ),
  41. tabBarLabel: () => null,
  42. }}
  43. component={Activities} />
  44. <BottomTab.Screen name="Profile"
  45. options={{
  46. tabBarIcon: ({color, size}) => (
  47. <Icon name="user" color={color} size={size} />
  48. ),
  49. tabBarLabel: () => null,
  50. }}
  51. component={Profile} />
  52. </BottomTab.Navigator>
  53. );
Advertisement
Add Comment
Please, Sign In to add comment