message: Registered shared view against a crumb
diff: @@ -2,8 +2,25 @@ package com.navigation.reactnative;
  import android.view.View;
  +import java.lang.ref.WeakReference;
  +import java.util.HashMap;
  +import java.util.HashSet;
  +
  public class SharedElementRegistry {
  + private static final HashMap<Integer, HashSet<WeakReference<View>>> sharedElements;
  +
  + static {
  + sharedElements = new HashMap<Integer, HashSet<WeakReference<View>>>();
  + }
  static void registerSharedElement(int scene, View view) {
  + if (!sharedElements.containsKey(scene) || !sharedElements.get(scene).contains(view)) {
  + synchronized (SharedElementRegistry.class) {
  + if (!sharedElements.containsKey(scene)) {
  + sharedElements.put(scene, new HashSet<WeakReference<View>>());
  + }
  + sharedElements.get(scene).add(new WeakReference(view));
  + }
  + }
  }
  }
  