12345678910111213141516171819202122232425 |
- package com.reactnativenavigation.parse;
-
- import org.json.JSONException;
- import org.json.JSONObject;
-
- public class FadeAnimation extends NestedAnimationsOptions {
- public FadeAnimation() {
- try {
- JSONObject alpha = new JSONObject();
- alpha.put("from", 0);
- alpha.put("to", 1);
- alpha.put("duration", 300);
-
- JSONObject content = new JSONObject();
- content.put("alpha", alpha);
-
- JSONObject animation = new JSONObject();
- animation.put("content", content);
- mergeWith(parse(animation));
- } catch (JSONException e) {
- e.printStackTrace();
- }
- }
- }
|