fix RCTConvert choke converting int to string

This commit is contained in:
Mark Vayngrib 2015-10-11 14:17:45 +01:00
parent af2d72957b
commit 2a69aae5ad
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ function UdpSocket(options, onmessage) {
if (typeof options === 'string') options = { type: options } if (typeof options === 'string') options = { type: options }
this.type = options.type this.type = options.type
this._id = instances++ this._id = '' + instances++
this._state = STATE.UNBOUND this._state = STATE.UNBOUND
this._subscription = DeviceEventEmitter.addListener( this._subscription = DeviceEventEmitter.addListener(
'udp-' + this._id + '-data', this._onReceive.bind(this) 'udp-' + this._id + '-data', this._onReceive.bind(this)