remove duplicate ReactVideoPackage()

This commit is contained in:
vok 2019-06-20 09:02:06 +07:00
parent 3ddcba3449
commit 3762a323fd

View File

@ -2,10 +2,8 @@ package com.videoplayer;
import android.app.Application; import android.app.Application;
import com.brentvatne.react.ReactVideoPackage;
import com.facebook.react.ReactApplication; import com.facebook.react.ReactApplication;
import com.brentvatne.react.ReactVideoPackage; import com.brentvatne.react.ReactVideoPackage;
import com.brentvatne.react.ReactVideoPackage;
import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage; import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage; import com.facebook.react.shell.MainReactPackage;
@ -26,10 +24,8 @@ public class MainApplication extends Application implements ReactApplication {
protected List<ReactPackage> getPackages() { protected List<ReactPackage> getPackages() {
return Arrays.asList( return Arrays.asList(
new MainReactPackage(), new MainReactPackage(),
new ReactVideoPackage(), new ReactVideoPackage()
new ReactVideoPackage(), );
new ReactVideoPackage()
);
} }
}; };