From 885d583204e7d7ddab2b595143508fd2e7f4e660 Mon Sep 17 00:00:00 2001 From: Ansh Nanda Date: Fri, 27 Oct 2023 14:07:49 -0400 Subject: [PATCH] add startuptime component --- package.json | 1 + src/App.native.tsx | 12 ++++++++++++ yarn.lock | 5 +++++ 3 files changed, 18 insertions(+) diff --git a/package.json b/package.json index 3df32da984..2af4f3b590 100644 --- a/package.json +++ b/package.json @@ -147,6 +147,7 @@ "react-native-safe-area-context": "4.6.3", "react-native-screens": "~3.22.0", "react-native-splash-screen": "^3.3.0", + "react-native-startup-time": "^2.1.0", "react-native-svg": "13.9.0", "react-native-url-polyfill": "^1.3.0", "react-native-uuid": "^2.0.1", diff --git a/src/App.native.tsx b/src/App.native.tsx index f4298c4613..197871e365 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -17,6 +17,7 @@ import * as Toast from './view/com/util/Toast' import {QueryClientProvider} from '@tanstack/react-query' import {queryClient} from 'lib/react-query' import {TestCtrls} from 'view/com/testing/TestCtrls' +import {StartupTime} from 'react-native-startup-time' SplashScreen.preventAutoHideAsync() @@ -49,6 +50,17 @@ const App = observer(function AppImpl() { + diff --git a/yarn.lock b/yarn.lock index 819488e5ba..8cacc87290 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15917,6 +15917,11 @@ react-native-splash-screen@^3.3.0: resolved "https://registry.yarnpkg.com/react-native-splash-screen/-/react-native-splash-screen-3.3.0.tgz#3af71ed17afe50fee69590a45aec399d071ead02" integrity sha512-rGjt6HkoSXxMqH4SQUJ1gnPQlPJV8+J47+4yhgTIan4bVvAwJhEeJH7wWt9hXSdH4+VfwTS0GTaflj1Tw83IhA== +react-native-startup-time@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/react-native-startup-time/-/react-native-startup-time-2.1.0.tgz#55c503503c903a4668051a9b600d9b868597b932" + integrity sha512-cm014/ig/ddHEEiAKoxfTDxUwrs5gaoxKpAOnpMIuhW5yozLxhouDtkozD26TLQ2UcIgftowgaScPMeZnI1YYg== + react-native-svg@13.9.0: version "13.9.0" resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-13.9.0.tgz#8df8a690dd00362601f074dec5d3a86dd0f99c7f"