mobile: fix slow launch

This commit is contained in:
Ammar Ahmed
2025-03-17 12:33:22 +05:00
committed by Abdullah Atta
parent 78f875ab0f
commit 88858308fb
3 changed files with 6 additions and 7 deletions

View File

@@ -52,14 +52,13 @@ if (appLockEnabled || appLockMode !== "none") {
useUserStore.getState().lockApp(true);
}
RNBootSplash.hide({ fade: true });
changeSystemBarColors();
RNBootSplash.hide();
const App = (props: { configureMode: "note-preview" }) => {
useAppEvents();
//@ts-ignore
globalThis["IS_MAIN_APP_RUNNING"] = true;
useEffect(() => {
changeSystemBarColors();
SettingsService.onFirstLaunch();
setTimeout(async () => {
await Notifications.get();

View File

@@ -29,8 +29,6 @@ const appName = appJson.name;
if (Config.isTesting) {
Date.prototype.toLocaleString = () => 'XX-XX-XX';
}
UIManager.setLayoutAnimationEnabledExperimental &&
UIManager.setLayoutAnimationEnabledExperimental(true);
if (__DEV__) {
console.warn = () => null;

View File

@@ -47,7 +47,7 @@ module.exports = (env) => {
return {
mode,
cache: true,
cache: mode === "production" ? false : true,
experiments: {
parallelCodeSplitting: true,
cache: {
@@ -138,7 +138,9 @@ module.exports = (env) => {
*/
rules: [
...Repack.getJsTransformRules(),
...Repack.getAssetTransformRules(),
...Repack.getAssetTransformRules({
inline: true
}),
{
test: /\.jsx?$/,
type: 'javascript/auto',