mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 11:47:54 +01:00
mobile: fix slow launch
This commit is contained in:
committed by
Abdullah Atta
parent
78f875ab0f
commit
88858308fb
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user