Ashok Ranganathan
Ashok Ranganathan

Reputation: 1

Bundle loading time for react native in the app increased on changing compile sdk version from 33 to 34

We are in the process of upgrading our App code compile sdk API level 34. The app is a hybrid app that contains Android + React Native code.

Currently using RN version 0.68.2

We are facing an issue in which the bundle loading time for react native in the app has increased and we are seeing a white screen for that time after the app launch due to the loading bundle which is leading to bad user experience.

We have checked different relevant approaches to the problem including:

1.      RN upgrade to 0.72, 0.74, 0.75
2.      Add reactrootview to blank fragment
3.      Tried removing all the patches added soloader loadlibrary call explicitly in mainapplication oncreate for the following libs: reactnativejni, rnscreens, fbjni, yoga
4.      Checking peer dependency of packages for RN ( to check if any other version of RN package is installed or not)
5.      Check release notes for API level 34 - android
6.      Trying with and without hermes
7.      Tried removing library module import and direct file import POC
8.      Update to react native 0.76+ without patches
9.      Code cleanup from library module and direct file import

We have only upgraded compile sdk level 33 to 34 and we are seeing increase in RN bundle loading.

Please let know further process to debug the issue and fix the same.

Steps to reproduce Launch the app.

React Native Version 0.68.2

Affected Platforms Runtime - Android

Upvotes: 0

Views: 11

Answers (0)

Related Questions