anandanand84 / technicalindicators

A javascript technical indicators written in typescript with pattern recognition right in the browser
MIT License
2.15k stars 557 forks source link

Usage problems with react-native #131

Closed ionush closed 5 years ago

ionush commented 6 years ago

Hi, I'm currently having a problem getting the most recent version (1.1.11) to run. I have already referred to #98

As pattern detection required keras-js, and that requires a lot of core modules, I used rn-nodeify to install core packages util, stream, fs, events, path and buffer. However, after doing that, my react-native application becomes unresponsive.

Do you have any suggestions to how I can run this on react-native? I don't need pattern detection. Maybe it would be nice to use further down the line but I only need basic indicators right now.

JMoli commented 6 years ago

I believe @anandanand84 is working on removing it as a dependency requirement.. As far as a workaround @anandanand84 has suggested loading the library from a cdn without the dependency or to use a version <1.1.4

anandanand84 commented 5 years ago

Kerasjs dependency is removed. Load tensorflowjs before the library if pattern detection is required