package com.artirigo.kontaktio;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * Created by André Kovac on 12/04/16.
 */
public class KontaktPackage implements ReactPackage {

//    @Override
//    public List<NativeModule> createNativeModules(ReactApplicationContext reactApplicationContext) {
//        return Collections.<NativeModule>singletonList(new KontaktModule(reactApplicationContext));
//    }

    @Override
    public List<NativeModule> createNativeModules(
            ReactApplicationContext reactContext) {
        List<NativeModule> modules = new ArrayList<>();

        modules.add(new KontaktModule(reactContext));

        return modules;
    }

    @Override
    public List<Class<? extends JavaScriptModule>> createJSModules() {
        return Collections.emptyList();
    }

    @Override
    public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
        return new ArrayList<>();
    }


}

@@ -365,43 +365,44 @@
 %0A * 
-Created by Andr%C3%A9 Kov
+Range and Monitor Kontakt.io be
 ac
- 
 on
- 12/04/16.
+s
 %0A */
@@ -457,18 +457,16 @@
 kage %7B%0A%0A
-//
     @Ove
@@ -471,18 +471,16 @@
 verride%0A
-//
     publ
@@ -491,40 +491,170 @@
 ist%3C
-Native
+Class%3C? extends JavaScript
 Module%3E
+%3E
  create
-NativeModule
+JSModules() %7B%0A        return Collections.emptyList();%0A    %7D%0A%0A    @Override%0A    public List%3CViewManager%3E createViewManager
 s(Re
@@ -676,35 +676,24 @@
 ontext react
-Application
 Context) %7B%0A/
@@ -691,18 +691,16 @@
 text) %7B%0A
-//
         
@@ -722,83 +722,21 @@
 ons.
-%3CNativeModule%3EsingletonList(new KontaktModule(reactApplicationContext)
+emptyList(
 );%0A
-//
     
@@ -1002,282 +1002,6 @@
  %7D%0A%0A
-    @Override%0A    public List%3CClass%3C? extends JavaScriptModule%3E%3E createJSModules() %7B%0A        return Collections.emptyList();%0A    %7D%0A%0A    @Override%0A    public List%3CViewManager%3E createViewManagers(ReactApplicationContext reactContext) %7B%0A        return new ArrayList%3C%3E();%0A    %7D%0A%0A%0A
 %7D%0A

Tidy up KontaktPackage.java