Merge pull request #4 from aprock/master

Use the public interface for require statements
This commit is contained in:
Mark Vayngrib 2015-07-29 11:01:25 -04:00
commit ce6a1df516

View File

@ -14,9 +14,11 @@
var inherits = require('inherits')
var EventEmitter = require('events').EventEmitter
var React = require('react-native')
var DeviceEventEmitter = require('RCTDeviceEventEmitter')
var Sockets = require('NativeModules').UdpSockets
var {
DeviceEventEmitter,
NativeModules
} = require('react-native');
var Sockets = NativeModules.UdpSockets
var base64 = require('base64-js')
var noop = function () {}
var instances = 0