react-native-navigation的迁移库

FabActionParamsParser.java 761B

12345678910111213141516171819
  1. package com.reactnativenavigation.params.parsers;
  2. import android.os.Bundle;
  3. import com.reactnativenavigation.params.FabActionParams;
  4. import com.reactnativenavigation.params.StyleParams;
  5. import com.reactnativenavigation.react.ImageLoader;
  6. public class FabActionParamsParser extends Parser {
  7. public FabActionParams parse(Bundle params, String navigatorEventId) {
  8. FabActionParams fabActionParams = new FabActionParams();
  9. fabActionParams.id = params.getString("id");
  10. fabActionParams.navigatorEventId = navigatorEventId;
  11. fabActionParams.icon = ImageLoader.loadImage(params.getString("icon"));
  12. fabActionParams.backgroundColor = StyleParams.Color.parse(params, "backgroundColor");
  13. return fabActionParams;
  14. }
  15. }