Open bitabs opened 6 years ago
Ok, I so inserted console.log() in transformers.js just before the switch statement:
try {
console.log(extension);
switch (extension) {
case '.js':
case '.jsx':
result = babelTransformer(src, filename);
break;
default:
result = babelTransformer(src, filename);
break;
}
} catch (e) {
throw new Error(e);
return;
}
Then When I did react-native run-android
, it started printing continuously:
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
transform[stdout]: .js
and at one stage, it printed the following:
Any ideas? @philikon @aschrijver
@NaseebullahSafi sorry, can't help you.. i had too many issues with nativifying my large nodejs project.. no longer using it.
instead running node on android directly on mobile in background thread, and react-native frontend ui :)
Ah I see, It's OK.
I'm kind of desperate at the moment, is there any tutorial on how to do it directly in android in the background thread? @aschrijver
As in, what framework might you be using to host the nodejs in Android? and how do you link your nodejs in android to your react native? I'd really appreciate if you could create a README for this because the demand is actually high. @aschrijver
I can give you some pointers. It has been some time ago that I was using this. Also running NodeJS on Android should be considered very experimental (and very interesting :D).
First on ReactNativify I wrote a number of SO questions + answers:
I don't know if there is anything there for you.. you should investigate :)
Then on running NodeJS on Android I wrote this article, that provides a summary of options.. the README :)
This is such a big problem, because the reason why I need nodejs (or if there is an alternative) is so that I can be able to transfer data from a microcontroller to an android device.
I'd like to import
openbci-cyton
module into my react native project. When I do so, it leads toI'm using ignite template. I call ReactNativeExamples in `App/containers/LaunchScreen.js
And heres the following files:
transformers.js
babal-transformer.js
node.js
cyton_example.js
And here's the full error: