Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak on dynamic chart #4

Open
scortumee opened this issue Apr 12, 2019 · 0 comments
Open

Memory leak on dynamic chart #4

scortumee opened this issue Apr 12, 2019 · 0 comments

Comments

@scortumee
Copy link

scortumee commented Apr 12, 2019

I have installed an example app on my phone (IOS) and played around with LineChart. What I have noticed is that while I was touch and dragging on a dynamic chart, memory was leaking. It started with 47mb then spiked to 100mb easily. Also, even if I switch to another screen, the amount of leaked memory stayed same. I was expecting it would go from 100mb to 47mb (which is a default RAM usage for the app).

I would really appreciate if you could tackle a cause of this problem and fix it. Thanks! Keep up the good work. I like how responsive and interactive charts are :)

Here is a snippet of my package.json file

{
  "name": "example",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "android": "cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug"
  },
  "dependencies": {
    "react": "16.6.3",
    "react-native": "0.58.5",
    "react-native-f2chart": "^1.1.0",
    "react-native-navigation": "^2.12.0",
    "react-native-webview": "^5.2.1"
  },
  "devDependencies": {
    "babel-core": "^7.0.0-bridge.0",
    "babel-jest": "24.1.0",
    "jest": "24.1.0",
    "metro-react-native-babel-preset": "0.52.0",
    "react-test-renderer": "16.6.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

IMG_6449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant