react-native-navigation的迁移库

123456789101112
  1. import _ from 'lodash';
  2. const propsByScreenId = {};
  3. export function setPropsForScreenId(screenId, props) {
  4. _.set(propsByScreenId, screenId, props);
  5. }
  6. export function getPropsForScreenId(screenId) {
  7. return _.get(propsByScreenId, screenId, {});
  8. }