Kudo / react-native-v8

Opt-in V8 runtime for React Native Android
MIT License
922 stars 69 forks source link

App unresponsive after new activity in android is closed. #28

Open AsminBudha opened 5 years ago

AsminBudha commented 5 years ago

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

Kudo commented 5 years ago

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 commented 4 years ago

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

codal-mpawar commented 1 year ago

@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.