@@ -2,8 +2,8 @@ import React, { useEffect } from "react";
22import { Stack } from "expo-router" ;
33import { HapticProvider } from "../contexts/HapticContext" ;
44import {
5- InvertColorsProvider ,
6- useInvertColors ,
5+ InvertColorsProvider ,
6+ useInvertColors ,
77} from "@/contexts/InvertColorsContext" ;
88import { useFonts } from "expo-font" ;
99import { setStatusBarHidden } from "expo-status-bar" ;
@@ -13,43 +13,43 @@ import { PassesProvider } from "@/contexts/PassesContext";
1313import * as NavigationBar from 'expo-navigation-bar' ;
1414
1515function RootNavigation ( ) {
16- useFonts ( {
17- "PublicSans-Regular" : require ( "../assets/fonts/PublicSans-Regular.ttf" ) ,
18- } ) ;
16+ useFonts ( {
17+ "PublicSans-Regular" : require ( "../assets/fonts/PublicSans-Regular.ttf" ) ,
18+ } ) ;
1919
20- useEffect ( ( ) => {
21- setStatusBarHidden ( true , "none" ) ;
22- } , [ ] ) ;
20+ useEffect ( ( ) => {
21+ setStatusBarHidden ( true , "none" ) ;
22+ } , [ ] ) ;
2323
24- const { invertColors } = useInvertColors ( ) ;
24+ const { invertColors } = useInvertColors ( ) ;
2525
2626 NavigationBar . setVisibilityAsync ( "hidden" ) ;
2727
28- useEffect ( ( ) => {
29- const newColor = invertColors ? "#FFFFFF" : "#000000" ;
30- SystemUI . setBackgroundColorAsync ( newColor ) ;
31- } , [ invertColors ] ) ;
28+ useEffect ( ( ) => {
29+ const newColor = invertColors ? "#FFFFFF" : "#000000" ;
30+ SystemUI . setBackgroundColorAsync ( newColor ) ;
31+ } , [ invertColors ] ) ;
3232
33- return (
34- < Stack
35- screenOptions = { {
36- headerShown : false ,
37- animation : "none" ,
38- } }
39- > </ Stack >
40- ) ;
33+ return (
34+ < Stack
35+ screenOptions = { {
36+ headerShown : false ,
37+ animation : "none" ,
38+ } }
39+ > </ Stack >
40+ ) ;
4141}
4242
4343export default function RootLayout ( ) {
44- return (
45- < SafeAreaProvider >
46- < HapticProvider >
47- < InvertColorsProvider >
48- < PassesProvider >
49- < RootNavigation />
50- </ PassesProvider >
51- </ InvertColorsProvider >
52- </ HapticProvider >
53- </ SafeAreaProvider >
54- ) ;
44+ return (
45+ < SafeAreaProvider >
46+ < HapticProvider >
47+ < InvertColorsProvider >
48+ < PassesProvider >
49+ < RootNavigation />
50+ </ PassesProvider >
51+ </ InvertColorsProvider >
52+ </ HapticProvider >
53+ </ SafeAreaProvider >
54+ ) ;
5555}
0 commit comments