From 1bfe1f128c58f4d0c6f0840adfe34e8326955c9f Mon Sep 17 00:00:00 2001 From: Andy Prock Date: Wed, 29 Jul 2015 07:46:21 -0700 Subject: [PATCH] Use the public interface for require statements 0.7.1 mandates that all native module require statements use the public interfafe, else the packager will fail. https://github.com/facebook/react-native/releases/tag/v0.7.0-rc --- UdpSocket.ios.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/UdpSocket.ios.js b/UdpSocket.ios.js index 1c9cae2..3b28dd6 100644 --- a/UdpSocket.ios.js +++ b/UdpSocket.ios.js @@ -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