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 1
1
package com.boilerplate
2
2
3
+ import android.os.Bundle;
3
4
import com.facebook.react.ReactActivity
4
5
import com.facebook.react.ReactActivityDelegate
5
6
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
@@ -19,4 +20,8 @@ class MainActivity : ReactActivity() {
19
20
*/
20
21
override fun createReactActivityDelegate (): ReactActivityDelegate =
21
22
DefaultReactActivityDelegate (this , mainComponentName, fabricEnabled)
23
+
24
+ override fun onCreate (savedInstanceState : Bundle ? ) {
25
+ super .onCreate(null );
26
+ }
22
27
}
Original file line number Diff line number Diff line change @@ -9,7 +9,16 @@ import ApplicationNavigator from '@/navigations/Application';
9
9
10
10
import '@/translations' ;
11
11
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
+ } ) ;
13
22
14
23
export const storage = new MMKV ( ) ;
15
24
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ function SafeScreen({
30
30
< StatusBar
31
31
backgroundColor = { navigationTheme . colors . background }
32
32
barStyle = { variant === 'dark' ? 'light-content' : 'dark-content' }
33
- translucent
34
33
/>
35
34
< ErrorBoundary fallback = { < DefaultError onReset = { onResetError } /> } >
36
35
{ isError ? < DefaultError onReset = { onResetError } /> : children }
Original file line number Diff line number Diff line change @@ -18,12 +18,13 @@ const useFetchOneQuery = (currentId: User['id']) =>
18
18
export const useUser = ( ) => {
19
19
const client = useQueryClient ( ) ;
20
20
21
- const invalidateFetchOneQuery = client . invalidateQueries ( {
22
- queryKey : [ UserQueryKey . fetchOne ] ,
23
- } ) ;
21
+ const invalidateQuery = ( queryKeys : UserQueryKey [ ] ) =>
22
+ client . invalidateQueries ( {
23
+ queryKey : queryKeys ,
24
+ } ) ;
24
25
25
26
return {
26
27
useFetchOneQuery,
27
- invalidateFetchOneQuery ,
28
+ invalidateQuery ,
28
29
} ;
29
30
} ;
Original file line number Diff line number Diff line change @@ -6591,15 +6591,15 @@ react-native-reanimated@^3.9.0-rc.1:
6591
6591
convert-source-map "^2.0.0"
6592
6592
invariant "^2.2.4"
6593
6593
6594
- react-native-safe-area-context@^4.10.1 :
6594
+ react-native-safe-area-context@^4.11.0 :
6595
6595
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 "
6597
6597
integrity sha512-Bg7bozxEB+ZS+H3tVYs5yY1cvxNXgR6nRQwpSMkYR9IN5CbxohLnSprrOPG/ostTCd4F6iCk0c51pExEhifSKQ==
6598
6598
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 ==
6603
6603
dependencies :
6604
6604
react-freeze "^1.0.0"
6605
6605
warn-once "^0.1.0"
You can’t perform that action at this time.
0 commit comments