Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. export const goToAuth = () =>
  2. Navigation.setRoot({
  3. root: {
  4. bottomTabs: {
  5. children: [
  6. {
  7. stack: {
  8. children: [
  9. {
  10. component: {
  11. name: 'Login',
  12. options: {
  13. bottomTab: {
  14. text: 'Tab One',
  15. },
  16. topBar: {
  17. title: {
  18. text: 'Tab One',
  19. },
  20. },
  21. },
  22. },
  23. },
  24. {
  25. component: {
  26. name: 'Settings',
  27. options: {
  28. topBar: {
  29. title: {
  30. text: 'Tab Two',
  31. },
  32. },
  33. },
  34. },
  35. },
  36. ],
  37. options: {
  38. bottomTab: {
  39. text: 'Tab 1',
  40. },
  41. },
  42. },
  43. },
  44. {
  45. component: {
  46. name: 'PinCode',
  47. options: {
  48. bottomTab: {
  49. text: 'Tab 2',
  50. },
  51. },
  52. },
  53. },
  54. ],
  55. },
  56. },
  57. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement