add startuptime component

This commit is contained in:
Ansh Nanda
2023-10-27 14:07:49 -04:00
parent 9e7155254d
commit 885d583204
3 changed files with 18 additions and 0 deletions
+1
View File
@@ -147,6 +147,7 @@
"react-native-safe-area-context": "4.6.3", "react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0", "react-native-screens": "~3.22.0",
"react-native-splash-screen": "^3.3.0", "react-native-splash-screen": "^3.3.0",
"react-native-startup-time": "^2.1.0",
"react-native-svg": "13.9.0", "react-native-svg": "13.9.0",
"react-native-url-polyfill": "^1.3.0", "react-native-url-polyfill": "^1.3.0",
"react-native-uuid": "^2.0.1", "react-native-uuid": "^2.0.1",
+12
View File
@@ -17,6 +17,7 @@ import * as Toast from './view/com/util/Toast'
import {QueryClientProvider} from '@tanstack/react-query' import {QueryClientProvider} from '@tanstack/react-query'
import {queryClient} from 'lib/react-query' import {queryClient} from 'lib/react-query'
import {TestCtrls} from 'view/com/testing/TestCtrls' import {TestCtrls} from 'view/com/testing/TestCtrls'
import {StartupTime} from 'react-native-startup-time'
SplashScreen.preventAutoHideAsync() SplashScreen.preventAutoHideAsync()
@@ -49,6 +50,17 @@ const App = observer(function AppImpl() {
<analytics.Provider> <analytics.Provider>
<RootStoreProvider value={rootStore}> <RootStoreProvider value={rootStore}>
<GestureHandlerRootView style={s.h100pct}> <GestureHandlerRootView style={s.h100pct}>
<StartupTime
style={{
backgroundColor: 'red',
position: 'absolute',
top: 0,
left: 0,
zIndex: 100000,
width: 100,
height: 100,
}}
/>
<TestCtrls /> <TestCtrls />
<Shell /> <Shell />
</GestureHandlerRootView> </GestureHandlerRootView>
+5
View File
@@ -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" resolved "https://registry.yarnpkg.com/react-native-splash-screen/-/react-native-splash-screen-3.3.0.tgz#3af71ed17afe50fee69590a45aec399d071ead02"
integrity sha512-rGjt6HkoSXxMqH4SQUJ1gnPQlPJV8+J47+4yhgTIan4bVvAwJhEeJH7wWt9hXSdH4+VfwTS0GTaflj1Tw83IhA== 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: react-native-svg@13.9.0:
version "13.9.0" version "13.9.0"
resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-13.9.0.tgz#8df8a690dd00362601f074dec5d3a86dd0f99c7f" resolved "https://registry.yarnpkg.com/react-native-svg/-/react-native-svg-13.9.0.tgz#8df8a690dd00362601f074dec5d3a86dd0f99c7f"