react-native-navigation的迁移库

valid-commands.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. export const singleScreenApp = {
  2. screen: {
  3. key: 'com.example.FirstTabScreen'
  4. }
  5. };
  6. export const tabBasedApp = {
  7. tabs: [
  8. {
  9. screen: {
  10. key: 'com.example.FirstTabScreen'
  11. }
  12. },
  13. {
  14. screen: {
  15. key: 'com.example.SecondTabScreen'
  16. }
  17. },
  18. {
  19. screen: {
  20. key: 'com.example.FirstTabScreen'
  21. }
  22. }
  23. ]
  24. };
  25. export const singleWithSideMenu = {
  26. screen: {
  27. key: 'com.example.MyScreen'
  28. },
  29. sideMenu: {
  30. left: {
  31. key: 'com.example.Menu'
  32. }
  33. }
  34. };
  35. export const singleWithRightSideMenu = {
  36. screen: {
  37. key: 'com.example.MyScreen'
  38. },
  39. sideMenu: {
  40. right: {
  41. key: 'com.example.Menu'
  42. }
  43. }
  44. };
  45. export const singleWithBothMenus = {
  46. screen: {
  47. key: 'com.example.MyScreen'
  48. },
  49. sideMenu: {
  50. left: {
  51. key: 'com.example.Menu1'
  52. },
  53. right: {
  54. key: 'com.example.Menu2'
  55. }
  56. }
  57. };
  58. export const tabBasedWithSideMenu = {
  59. tabs: [
  60. {
  61. screen: {
  62. key: 'com.example.FirstTabScreen'
  63. }
  64. },
  65. {
  66. screen: {
  67. key: 'com.example.SecondTabScreen'
  68. }
  69. },
  70. {
  71. screen: {
  72. key: 'com.example.FirstTabScreen'
  73. }
  74. }
  75. ],
  76. sideMenu: {
  77. left: {
  78. key: 'com.example.Menu1'
  79. },
  80. right: {
  81. key: 'com.example.Menu2'
  82. }
  83. }
  84. };