react-native-navigation的迁移库

FadeAnimation.java 683B

12345678910111213141516171819202122232425
  1. package com.reactnativenavigation.parse;
  2. import org.json.JSONException;
  3. import org.json.JSONObject;
  4. public class FadeAnimation extends NestedAnimationsOptions {
  5. public FadeAnimation() {
  6. try {
  7. JSONObject alpha = new JSONObject();
  8. alpha.put("from", 0);
  9. alpha.put("to", 1);
  10. alpha.put("duration", 300);
  11. JSONObject content = new JSONObject();
  12. content.put("alpha", alpha);
  13. JSONObject animation = new JSONObject();
  14. animation.put("content", content);
  15. mergeWith(parse(animation));
  16. } catch (JSONException e) {
  17. e.printStackTrace();
  18. }
  19. }
  20. }