Skip to content

Instantly share code, notes, and snippets.

@kaueDM
Created November 28, 2017 19:18
Show Gist options
  • Save kaueDM/6b41c850afece1ccc3d62477f96196b9 to your computer and use it in GitHub Desktop.
Save kaueDM/6b41c850afece1ccc3d62477f96196b9 to your computer and use it in GitHub Desktop.
package com.ruptiva_payment;
import com.facebook.react.ReactPackage;
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 Kauê da Maia ([email protected]) on 21/11/17.
*/
public class RuptivaPaymentPackage implements ReactPackage {
@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();
modules.add(new ThermalPrinterModule(reactContext));
modules.add(new TerminalModule(reactContext));
// modules.add(new TestModule(reactContext));
return modules;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment