package com.inprogress.reactnativeyoutube;

import com.google.android.youtube.player.YouTubePlayerFragment;


public class VideoFragment extends YouTubePlayerFragment {

    private YouTubeView mYouTubeView;

    public VideoFragment(YouTubeView youTubeView) {
        mYouTubeView = youTubeView;
    }

    public static VideoFragment newInstance(YouTubeView youTubeView) {
        return new VideoFragment(youTubeView);
    }

    @Override
    public void onResume() {
        mYouTubeView.onVideoFragmentResume();
        super.onResume();
    }
}

@@ -227,16 +227,54 @@
 ragment(
+) %7B%7D%0A%0A%0A    public void setYoutubeView(
 YouTubeV
@@ -418,45 +418,123 @@
     
-return new VideoFragment(youTubeView)
+VideoFragment fragment = new VideoFragment();%0A        fragment.setYoutubeView(youTubeView);%0A        return fragment
 ;%0A  
@@ -577,24 +577,64 @@
 nResume() %7B%0A
+        if (mYouTubeView != null) %7B%0A    
         mYou
@@ -663,24 +663,35 @@
 ntResume();%0A
+        %7D%0A%0A
         supe

Remove VideoFragment non-default constructor