message: Registered shared view in predraw listener
  Ensures that the root view is set
diff: @@ -2,6 +2,7 @@ package com.navigation.reactnative;
  import android.annotation.SuppressLint;
  import android.view.View;
  +import android.view.ViewTreeObserver;
  import android.widget.FrameLayout;
  import com.facebook.react.uimanager.ThemedReactContext;
  @@ -26,13 +27,19 @@ public class SharedElementManager extends ViewGroupManager<FrameLayout> {
  @ReactProp(name = "name")
  public void setName(FrameLayout view, String name) {
  View rootView = view.getRootView();
  + view.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {
  + @Override
  + public boolean onPreDraw() {
  + view.getViewTreeObserver().removeOnPreDrawListener(this);
  HashSet<View> sharedElements = (HashSet<View>) rootView.getTag(R.id.sharedElements);
  if (sharedElements == null) {
  sharedElements = new HashSet<>();
  rootView.setTag(R.id.sharedElements, sharedElements);
  }
  - if (!sharedElements.contains(view))
  sharedElements.add(view);
  + return true;
  + }
  + });
  view.setTransitionName(name);
  }
  