mirror of
https://github.com/status-im/react-native-udp.git
synced 2026-08-30 09:51:06 +00:00
initial android support
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
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user