react-native-v8 icon indicating copy to clipboard operation
react-native-v8 copied to clipboard

App unresponsive after new activity in android is closed.

Open AsminBudha opened this issue 4 years ago • 3 comments

We recently integrated react-native-v8 engine in our android app and we were able to reduce memory consumption. But, we found out lagging when app returns back to react native part after closing new activity.

Steps to reproduce:

  1. From screen which is written in react-native open new activity which is written in native android (in our case Java).
  2. Close activity or press back to return back to react-native screen.

Screen written in react-native freezes for some time.

In our case, we're able to reproduce this issue in two scenarios:

  1. With react-native-image-picker package. This library opens a default camera app to capture image which means new activity. When we return back to app after capturing image there is a lagging.

  2. Our custom android native activity. We have a native android module which opens new activity. When we open and then close that activity app freezes for some time. Scrolling is working fine but app does not trigger any onPress events.

We're using: react: 16.8.3 react-native: 0.59.10

AsminBudha avatar Oct 18 '19 15:10 AsminBudha

Thanks for reporting this issue. I will try to find a time to have a sample code trying to reproduce this issue if I can.

Kudo avatar Oct 19 '19 03:10 Kudo

@AsminBudha New V8 published. Please try v8-android 7.8.1 with use any of these react-native-v8 versions:

  • v0.59.10-patch.4
  • v0.60.6-patch.2
  • v0.61.1-patch.3
  • v0.61.2-patch.1
  • v0.61.3-patch.1
  • v0.61.4-patch.1

Kudo avatar Nov 07 '19 11:11 Kudo

@Kudo App unresponsive "react": "17.0.2", "react-native": "0.67.1", "react-native-v8": "^1.6.0", "v8-android-jit": "^10.100.1" bundle size 37.6 MB may be this reason to lagging the app

Please let me know what we can do now. The Samsung galaxy app crash issue is resolved.

codal-mpawar avatar Dec 22 '22 06:12 codal-mpawar