mirror of
https://github.com/status-im/react-native-udp.git
synced 2026-08-29 09:21:06 +00:00
moved ios specific code into a subfolder created an android folder updated the Install instructions on the readme bumped the version to 0.2.0
44 lines
1.0 KiB
Java
44 lines
1.0 KiB
Java
/**
|
|
* UdpSocketsModule.java
|
|
* react-native-udp
|
|
*
|
|
* Created by Andy Prock on 9/24/15.
|
|
*/
|
|
|
|
package com.tradle.react;
|
|
|
|
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;
|
|
|
|
|
|
public final class UdpSocketsModule implements ReactPackage {
|
|
|
|
@Override
|
|
public List<NativeModule> createNativeModules(
|
|
ReactApplicationContext reactContext) {
|
|
List<NativeModule> modules = new ArrayList<>();
|
|
|
|
modules.add(new UdpSockets(reactContext));
|
|
|
|
return modules;
|
|
}
|
|
|
|
@Override
|
|
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
|
return Collections.emptyList();
|
|
}
|
|
|
|
@Override
|
|
public List<ViewManager> createViewManagers(
|
|
ReactApplicationContext reactContext) {
|
|
return Collections.emptyList();
|
|
}
|
|
}
|