File tree Expand file tree Collapse file tree 5 files changed +26
-12
lines changed
android/app/src/main/java/com/boilerplate
components/templates/SafeScreen Expand file tree Collapse file tree 5 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 11package com.boilerplate
22
3+ import android.os.Bundle;
34import com.facebook.react.ReactActivity
45import com.facebook.react.ReactActivityDelegate
56import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
@@ -19,4 +20,8 @@ class MainActivity : ReactActivity() {
1920 */
2021 override fun createReactActivityDelegate (): ReactActivityDelegate =
2122 DefaultReactActivityDelegate (this , mainComponentName, fabricEnabled)
23+
24+ override fun onCreate (savedInstanceState : Bundle ? ) {
25+ super .onCreate(null );
26+ }
2227}
Original file line number Diff line number Diff line change @@ -9,7 +9,16 @@ import ApplicationNavigator from '@/navigations/Application';
99
1010import '@/translations' ;
1111
12- export const queryClient = new QueryClient ( ) ;
12+ export const queryClient = new QueryClient ( {
13+ defaultOptions : {
14+ queries : {
15+ retry : false ,
16+ } ,
17+ mutations : {
18+ retry : false ,
19+ } ,
20+ } ,
21+ } ) ;
1322
1423export const storage = new MMKV ( ) ;
1524
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ function SafeScreen({
3030 < StatusBar
3131 backgroundColor = { navigationTheme . colors . background }
3232 barStyle = { variant === 'dark' ? 'light-content' : 'dark-content' }
33- translucent
3433 />
3534 < ErrorBoundary fallback = { < DefaultError onReset = { onResetError } /> } >
3635 { isError ? < DefaultError onReset = { onResetError } /> : children }
Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ const useFetchOneQuery = (currentId: User['id']) =>
1818export const useUser = ( ) => {
1919 const client = useQueryClient ( ) ;
2020
21- const invalidateFetchOneQuery = client . invalidateQueries ( {
22- queryKey : [ UserQueryKey . fetchOne ] ,
23- } ) ;
21+ const invalidateQuery = ( queryKeys : UserQueryKey [ ] ) =>
22+ client . invalidateQueries ( {
23+ queryKey : queryKeys ,
24+ } ) ;
2425
2526 return {
2627 useFetchOneQuery,
27- invalidateFetchOneQuery ,
28+ invalidateQuery ,
2829 } ;
2930} ;
Original file line number Diff line number Diff line change @@ -6591,15 +6591,15 @@ react-native-reanimated@^3.9.0-rc.1:
65916591 convert-source-map "^2.0.0"
65926592 invariant "^2.2.4"
65936593
6594- react-native-safe-area-context@^4.10.1 :
6594+ react-native-safe-area-context@^4.11.0 :
65956595 version "4.11.0"
6596- resolved "https://registry.npmjs.org /react-native-safe-area-context/-/react-native-safe-area-context-4.11.0.tgz"
6596+ resolved "https://registry.yarnpkg.com /react-native-safe-area-context/-/react-native-safe-area-context-4.11.0.tgz#d45271363672dc1923ddb0ce5a6ad588e210c85d "
65976597 integrity sha512-Bg7bozxEB+ZS+H3tVYs5yY1cvxNXgR6nRQwpSMkYR9IN5CbxohLnSprrOPG/ostTCd4F6iCk0c51pExEhifSKQ==
65986598
6599- react-native-screens@3.31.1 :
6600- version "3.31.1 "
6601- resolved "https://registry.npmjs.org /react-native-screens/-/react-native-screens-3.31.1 .tgz"
6602- integrity sha512-8fRW362pfZ9y4rS8KY5P3DFScrmwo/vu1RrRMMx0PNHbeC9TLq0Kw1ubD83591yz64gLNHFLTVkTJmWeWCXKtQ ==
6599+ react-native-screens@^3.34.0 :
6600+ version "3.34.0 "
6601+ resolved "https://registry.yarnpkg.com /react-native-screens/-/react-native-screens-3.34.0 .tgz#1291a460c5bc59e2ba581b42d40fa9a58d3b1197 "
6602+ integrity sha512-8ri3Pd9QcpfXnVckOe/Lnto+BXmSPHV/Q0RB0XW0gDKsCv5wi5k7ez7g1SzgiYHl29MSdiqgjH30zUyOOowOaw ==
66036603 dependencies :
66046604 react-freeze "^1.0.0"
66056605 warn-once "^0.1.0"
You can’t perform that action at this time.
0 commit comments