Revert "fix RCTConvert choke converting int to string"
This reverts commit 2a69aae5ad
.
This commit is contained in:
parent
00acebd3f2
commit
d852f48cdb
|
@ -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