Add comment about node process stdout

This commit is contained in:
Julia Friesel
2018-09-11 08:41:54 +02:00
parent 4839f95312
commit 2716decfde
+5 -7
View File
@@ -1,8 +1,9 @@
// too see stdout / stderr from this process, run
// adb logcat | grep "NODEJS-MOBILE"
const rnBridge = require('rn-bridge')
try {
const bcryptjs = require('bcryptjs')
const bcryptjs = require('bcryptjs')
rnBridge.channel.on('message', (msg) => {
rnBridge.channel.on('message', (msg) => {
msg = JSON.parse(msg)
if (msg.type === 'request-hash') {
const hash = bcryptjs.hashSync(msg.message, 10)
@@ -11,7 +12,4 @@ try {
message: hash
}))
}
})
} catch (err) {
rnBridge.channel.send(JSON.stringify(err.message))
}
})