File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ export { ErrorBoundary } from 'expo-router';
1616// Import global CSS file
1717import '../../global.css' ;
1818
19+ import { cssInterop } from 'nativewind' ;
20+ import Svg from 'react-native-svg' ;
21+
1922export const unstable_settings = {
2023 initialRouteName : '(app)' ,
2124} ;
@@ -25,6 +28,13 @@ loadSelectedTheme();
2528// Prevent the splash screen from auto-hiding before asset loading is complete.
2629SplashScreen . preventAutoHideAsync ( ) ;
2730
31+ //Apply cssInterop to Svg to resolve className string into style
32+ cssInterop ( Svg , {
33+ className : {
34+ target : 'style' ,
35+ } ,
36+ } ) ;
37+
2838export default function RootLayout ( ) {
2939 const navigationRef = useNavigationContainerRef ( ) ;
3040 useReactNavigationDevTools ( navigationRef ) ;
You can’t perform that action at this time.
0 commit comments