react-native-navigation的迁移库

ContainerStore.js 265B

123456789101112
  1. const state = {
  2. containersByKey: {}
  3. };
  4. export function setContainerClass(containerKey, ContainerClass) {
  5. state.containersByKey[containerKey] = ContainerClass;
  6. }
  7. export function getContainerClass(containerKey) {
  8. return state.containersByKey[containerKey];
  9. }