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
This commit is contained in:
Andy Prock 2015-07-29 07:46:21 -07:00
parent ee90f6b626
commit 1bfe1f128c
1 changed files with 5 additions and 3 deletions

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