import React from 'react';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { WebView } from 'react-native-webview';
import { urls } from '@config';

function App() {
  return (
    <SafeAreaProvider>
      <WebView
        source={{ uri: urls.webUrl }}
        style={{ flex: 1 }}
        originWhitelist={['*']}
        javaScriptEnabled={true}
        domStorageEnabled={true}
        allowFileAccess={true}
        allowUniversalAccessFromFileURLs={true}
        allowFileAccessFromFileURLs={true}
      />
    </SafeAreaProvider>
  );
}

export default App;