react-native-navigation的迁移库

ContextualMenuParamsParser.java 739B

1234567891011121314151617
  1. package com.reactnativenavigation.params.parsers;
  2. import android.os.Bundle;
  3. import com.reactnativenavigation.params.ContextualMenuParams;
  4. import com.reactnativenavigation.params.NavigationParams;
  5. public class ContextualMenuParamsParser extends Parser {
  6. public ContextualMenuParams parse(Bundle bundle) {
  7. ContextualMenuParams result = new ContextualMenuParams();
  8. result.buttons = new ContextualMenuButtonParamsParser().parseContextualMenuButtons(bundle.getBundle("buttons"));
  9. result.leftButton = new TitleBarLeftButtonParamsParser().parseSingleButton(bundle.getBundle("backButton"));
  10. result.navigationParams = new NavigationParams(bundle.getBundle("navigationParams"));
  11. return result;
  12. }
  13. }