/**
 * PocketDog - React Native App
 * A modern article archiving app
 */

import React from 'react';
import { StatusBar, useColorScheme, Platform } from 'react-native';
import AppNavigator from './src/navigation/AppNavigator';

function App() {
  const isDarkMode = useColorScheme() === 'dark';

  return (
    <>
      <StatusBar
        barStyle={
          Platform.OS === 'ios'
            ? 'dark-content'
            : isDarkMode
            ? 'light-content'
            : 'dark-content'
        }
        backgroundColor={Platform.OS === 'android' ? '#ffffff' : 'transparent'}
        translucent={Platform.OS === 'android'}
      />
      <AppNavigator />
    </>
  );
}

export default App;
