text: import React from "react";
  import { useState, useEffect } from "react";
  import { View } from "react-native";
  import { NavigationContainer } from "@react-navigation/native";
  import { MainNavigator } from "./navigation/MainNavigator";
  import { LoginNavigator } from "./navigation/LoginNavigator";
  export default function App() {
    const [myAccount, setMyAccount] = useState(null);
  
    const appContent =
      myAccount === null ? (
        <LoginNavigator setMyAccount={setMyAccount} />
      ) : (
        <MainNavigator
          myAccount={myAccount}
          setMyAccount={setMyAccount}
        />
      );
  
    return <NavigationContainer>{appContent}</NavigationContainer>;
  }
  