react-native-navigation的迁移库

ScreenStore.js 233B

123456789101112
  1. const state = {
  2. screensByKey: {}
  3. };
  4. export function saveScreenClass(screenKey, ScreenClass) {
  5. state.screensByKey[screenKey] = ScreenClass;
  6. }
  7. export function getScreenClass(screenKey) {
  8. return state.screensByKey[screenKey];
  9. }