react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. module.exports = {
  2. // Layouts
  3. STACK_BTN: 'STACK_BUTTON',
  4. BOTTOM_TABS_BTN: 'BOTTOM_TABS_BUTTON',
  5. EXTERNAL_COMP_BTN: 'EXTERNAL_COMPONENT_BUTTON',
  6. LAYOUTS_TAB: 'LAYOUTS_TAB',
  7. NAVIGATION_TAB: 'NAVIGATION_TAB',
  8. OPTIONS_TAB: 'OPTIONS_TAB',
  9. BUTTONS_TAB: 'BUTTONS_TAB',
  10. SIDE_MENU_INSIDE_BOTTOM_TABS_BTN: 'SIDE_MENU_INSIDE_BOTTOM_TABS',
  11. OVERLAY_BTN: 'OVERLAY_BTN',
  12. SIDE_MENU_BTN: 'SIDE_MENU_BTN',
  13. MODAL_BTN: 'SHOW_MODAL_BUTTON',
  14. DISMISS_MODAL_BTN: 'DISMISS_MODAL_BUTTON',
  15. MODAL_SCREEN_HEADER: 'MODAL_SCREEN_HEADER',
  16. ALERT_BUTTON: 'ALERT_BUTTON',
  17. OVERLAY_ALERT_HEADER: 'OVERLAY_ALERT_HEADER',
  18. SHOW_OVERLAY_BTN: 'SHOW_OVERLAY_BTN',
  19. SHOW_TOUCH_THROUGH_OVERLAY_BTN: 'SHOW_TOUCH_THROUGH_OVERLAY_BTN',
  20. DISMISS_BTN: 'DISMISS_BTN',
  21. STACK_SCREEN_HEADER: 'STACK_SCREEN_HEADER',
  22. PUSH_NO_ANIM_BTN: 'PUSH_NO_ANIM_BTN',
  23. POP_TO_FIRST_SCREEN_BTN: 'POP_TO_FIRST_SCREEN_BTN',
  24. POP_NONE_EXISTENT_SCREEN: 'POP_NONE_EXISTENT_SCREEN',
  25. MULTI_CHILD_STACK_BTN: 'MULTI_CHILD_STACK_BTN',
  26. EXTERNAL_COMP_SCREEN_HEADER: 'EXTERNAL_COMPONENT_SCREEN_HEADER',
  27. TOP_BAR: 'TOP_BAR',
  28. PUSH_BTN: 'PUSH_BUTTON',
  29. PUSH_SIDE_MENU_BTN: 'PUSH_SIDE_MENU_BTN',
  30. SHOW_STATIC_EVENTS_SCREEN: 'SHOW_STATIC_EVENTS_SCREEN',
  31. POP_BTN: 'POP_BUTTON',
  32. BACK_HANDLER_BTN: 'BACK_HANDLER_BUTTON',
  33. POP_TO_ROOT_BTN: 'POP_TO_ROOT',
  34. POP_NONE_EXISTENT_SCREEN_BTN: 'POP_NONE_EXISTENT_SCREEN_BTN',
  35. TOP_BAR_BTN: 'TOP_BAR_BUTTON',
  36. CUSTOM_BACK_BTN: 'CUSTOM_BACK_BUTTON',
  37. PUSH_CUSTOM_BACK_BTN: 'PUSH_CUSTOM_BACK_BTN',
  38. SWITCH_TAB_BY_INDEX_BTN: 'SWITCH_TAB_BY_INDEX_BTN',
  39. SWITCH_TAB_BY_COMPONENT_ID_BTN: 'SWITCH_TAB_BY_COMPONENT_ID_BTN',
  40. PUSHED_BOTTOM_TABS: 'PUSHED_BOTTOM_TABS',
  41. CHANGE_TITLE_BTN: 'CHANGE_TITLE_BTN',
  42. SHOW_TOP_BAR_BTN: 'SHOW_TOP_BAR_BUTTON',
  43. HIDE_TOP_BAR_BTN: 'HIDE_TOP_BAR_BUTTON',
  44. SET_BADGE_BTN: 'SET_BADGE_BTN',
  45. CLEAR_BADGE_BTN: 'CLEAR_BADGE_BTN',
  46. BOTTOM_TABS: 'BOTTOM_TABS',
  47. HIDE_TABS_BTN: 'HIDE_TABS_BTN',
  48. SHOW_TABS_BTN: 'SHOW_TABS_BTN',
  49. HIDE_TABS_PUSH_BTN: 'HIDE_TABS_PUSH_BTN',
  50. ROUND_BUTTON: 'ROUND_BUTTON',
  51. BUTTON_ONE: 'BUTTON_ONE',
  52. LEFT_BUTTON: 'LEFT_BUTTON',
  53. HIDE_TOPBAR_DEFAULT_OPTIONS: 'HIDE_TOPBAR_DEFAULT_OPTIONS',
  54. SET_TOPBAR_REACT_VIEW: 'SET_TOPBAR_REACT_VIEW',
  55. SHOW_YELLOW_BOX_BTN: 'SHOW_YELLOW_BOX_BTN',
  56. SET_REACT_TITLE_VIEW: 'SET_REACT_TITLE_VIEW',
  57. SET_TITLE: 'SET_TITLE',
  58. STATIC_EVENTS_OVERLAY_BTN: 'STATIC_EVENTS_OVERLAY_BTN',
  59. PUSH_LIFECYCLE_BTN: 'PUSH_LIFECYCLE_BTN',
  60. MODAL_LIFECYCLE_BTN: 'MODAL_LIFECYCLE_BTN',
  61. DISMISS_ALL_PREVIOUS_MODAL_BTN: 'DISMISS_ALL_PREVIOUS_MODAL_BTN',
  62. DISMISS_PREVIOUS_MODAL_BTN: 'DISMISS_PREVIOUS_MODAL_BTN',
  63. DISMISS_UNKNOWN_MODAL_BTN: 'DISMISS_UNKNOWN_MODAL_BTN',
  64. PUSH_TO_TEST_DID_DISAPPEAR_BTN: 'PUSH_TO_TEST_DID_DISAPPEAR_BTN',
  65. SET_ROOT_BTN: 'SET_ROOT_BTN',
  66. SET_MULTIPLE_ROOTS_BTN: 'SET_MULTIPLE_ROOTS_BTN',
  67. ADD_BACK_HANDLER: 'ADD_BACK_HANDLER',
  68. REMOVE_BACK_HANDLER: 'REMOVE_BACK_HANDLER',
  69. OPEN_LEFT_SIDE_MENU_BTN: 'OPEN_LEFT_SIDE_MENU_BTN',
  70. OPEN_RIGHT_SIDE_MENU_BTN: 'OPEN_RIGHT_SIDE_MENU_BUTTON',
  71. CLOSE_LEFT_SIDE_MENU_BTN: 'CLOSE_LEFT_SIDE_MENU_BTN',
  72. CLOSE_RIGHT_SIDE_MENU_BTN: 'CLOSE_RIGHT_SIDE_MENU_BTN',
  73. SIDE_MENU_PUSH_BTN: 'SIDE_MENU_PUSH_BUTTON',
  74. LEFT_SIDE_MENU_PUSH_BTN: 'LEFT_SIDE_MENU_PUSH_BUTTON',
  75. LEFT_SIDE_MENU_PUSH_AND_CLOSE_BTN: 'LEFT_SIDE_MENU_PUSH_AND_CLOSE_BTN',
  76. RIGHT_SIDE_MENU_PUSH_BTN: 'RIGHT_SIDE_MENU_PUSH_BUTTON',
  77. CENTER_SCREEN_HEADER: 'CENTER_SCREEN_HEADER',
  78. SIDE_MENU_TAB: 'SIDE_MENU_TAB',
  79. FLAT_LIST_BTN: 'FLAT_LIST_BTN',
  80. SHOW_ORIENTATION_SCREEN: 'SHOW_ORIENTATION_SCREEN',
  81. DEFAULT_ORIENTATION_BTN: 'DEFAULT_ORIENTATION_BTN',
  82. LANDSCAPE_PORTRAIT_ORIENTATION_BTN: 'LANDSCAPE_PORTRAIT_ORIENTATION_BTN',
  83. PORTRAIT_ORIENTATION_BTN: 'PORTRAIT_ORIENTATION_BTN',
  84. LANDSCAPE_ORIENTATION_BTN: 'LANDSCAPE_ORIENTATION_BTN',
  85. DISMISS_BTN: 'DISMISS_BTN',
  86. SEARCH_BTN: 'SEARCH_BTN',
  87. SET_STACK_ROOT_BTN: 'SET_STACK_ROOT_BTN',
  88. SET_STACK_ROOT_WITH_ID_BTN: 'SET_STACK_ROOT_WITH_ID_BTN',
  89. // Buttons
  90. TAB_BASED_APP_BUTTON: `TAB_BASED_APP_BUTTON`,
  91. TAB_BASED_APP_SIDE_BUTTON: `TAB_BASED_APP_SIDE_BUTTON`,
  92. PUSH_STATIC_LIFECYCLE_BUTTON: `PUSH_STATIC_LIFECYCLE_BUTTON`,
  93. PUSH_CONTEXT_SCREEN_BUTTON: `PUSH_CONTEXT_SCREEN_BUTTON`,
  94. PUSH_OPTIONS_BUTTON: `PUSH_OPTIONS_BUTTON`,
  95. PUSH_DEFAULT_OPTIONS_BUTTON: `PUSH_DEFAULT_OPTIONS_BUTTON`,
  96. SHOW_REDBOX_BUTTON: `SHOW_REDBOX_BUTTON`,
  97. ORIENTATION_BTN: `ORIENTATION_BUTTON`,
  98. PROVIDED_ID: `PROVIDED_ID`,
  99. DISMISS_ALL_MODALS_BTN: `DISMISS_ALL_MODALS_BUTTON`,
  100. DISMISS_FIRST_MODAL_BTN: `DISMISS_FIRST_MODAL_BUTTON`,
  101. POP_PREVIOUS_BUTTON: `POP_PREVIOUS_BUTTON`,
  102. POP_STACK_POSITION_ONE_BUTTON: `POP_STACK_POSITION_ONE_BUTTON`,
  103. DYNAMIC_OPTIONS_BUTTON: `DYNAMIC_OPTIONS_BUTTON`,
  104. SCROLLVIEW_SCREEN_BUTTON: `SCROLLVIEW_SCREEN_BUTTON`,
  105. HIDE_FAB: `HIDE_FAB`,
  106. SHOW_SNACKBAR_BUTTON: `SHOW_SNACKBAR_BUTTON`,
  107. TOGGLE_TOP_BAR_HIDE_ON_SCROLL: `TOGGLE_TOP_BAR_HIDE_ON_SCROLL`,
  108. SET_TAB_BADGE_BUTTON: `SET_TAB_BADGE_BUTTON`,
  109. SET_TAB_BADGE_BUTTON_NULL: `SET_TAB_BADGE_BUTTON_NULL`,
  110. PUSH_BUTTON_WAIT_FOR_RENDER: `PUSH_AND_WAIT_FOR_RENDER`,
  111. PUSH_CUSTOM_BACK_BUTTON: `PUSH_CUSTOM_BACK_BUTTON`,
  112. SHOW_BOTTOM_TABS_BUTTON: `SHOW_BOTTOM_TABS_BUTTON`,
  113. FIRST_TAB_BAR_BUTTON: `FIRST_TAB_BAR_BUTTON`,
  114. SECOND_TAB_BAR_BTN: `SECOND_TAB_BAR_BUTTON`,
  115. THIRD_TAB_BAR_BTN: `THIRD_TAB_BAR_BUTTON`,
  116. SHOW_TOUCH_THROUGH_OVERLAY_SCROLLER: `SHOW_TOUCH_THROUGH_OVERLAY_SCROLLER`,
  117. OK_BUTTON: `OK_BUTTON`,
  118. MODAL_WITH_STACK_BUTTON: `MODAL_WITH_STACK_BUTTON`,
  119. CUSTOM_TRANSITION_BUTTON: `CUSTOM_TRANSITION_BUTTON`,
  120. COMPLEX_LAYOUT_BUTTON: `COMPLEX_LAYOUT_BUTTON`,
  121. EXTERNAL_COMPONENT_IN_STACK: `EXTERNAL_COMPONENT_IN_STACK`,
  122. SPLIT_VIEW_BUTTON: `SPLIT_VIEW_BUTTON`,
  123. SHOW_PREVIEW_BUTTON: `SHOW_PREVIEW_BUTTON`,
  124. SEARCH_RESULT_ITEM: `SEARCH_RESULT_ITEM`,
  125. SIDE_MENU_LAYOUT_INSIDE_BOTTOM_TAB: `SIDE_MENU_LAYOUT_INSIDE_BOTTOM_TAB`,
  126. SET_INTERCEPT_TOUCH: `SET_INTERCEPT_TOUCH`,
  127. PUSH_BOTTOM_TABS_BUTTON: `PUSH_BOTTOM_TABS_BUTTON`,
  128. SET_STACK_ROOT_BUTTON: `SET_STACK_ROOT_BUTTON`,
  129. SET_ROOT:'SET_ROOT',
  130. RESET_BUTTONS: 'RESET_BUTTONS',
  131. SHOW_LIFECYCLE_BTN: 'SHOW_LIFECYCLE_BTN',
  132. CHANGE_BUTTON_PROPS: 'CHANGE_BUTTON_PROPS',
  133. GOTO_BUTTONS_SCREEN: 'GOTO_BUTTONS_SCREEN',
  134. // Elements
  135. SCROLLVIEW_ELEMENT: `SCROLLVIEW_ELEMENT`,
  136. BOTTOM_TABS_ELEMENT: `BOTTOM_TABS_ELEMENT`,
  137. LANDSCAPE_ELEMENT: `LANDSCAPE_ELEMENT`,
  138. PORTRAIT_ELEMENT: `PORTRAIT_ELEMENT`,
  139. // Headers
  140. WELCOME_SCREEN_HEADER: `WELCOME_SCREEN_HEADER`,
  141. PUSHED_SCREEN_HEADER: `PUSHED_SCREEN_HEADER`,
  142. OPTIONS_SCREEN_HEADER: `OPTIONS_SCREEN_HEADER`,
  143. MODAL_SCREEN: `MODAL_SCREEN`,
  144. CENTERED_TEXT_HEADER: `CENTERED_TEXT_HEADER`
  145. };