fix RCTConvert choke converting int to string
This commit is contained in:
parent
af2d72957b
commit
2a69aae5ad
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue