import React, { useEffect } from 'react';
import { StatusBar, useColorScheme, SafeAreaView, View } from 'react-native';
// import { showPluginUI, QmsDashboardView } from 'QmsPlugin';
import { QmsDashboardView } from 'QmsPlugin';

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

  return (
    <SafeAreaView>
      <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
      <View style={{ flex: 1 }}>
        <QmsDashboardView
          style={{ flex: 1 }}
          ClientID={'client id test'}
          ClientCode={'client code test'}
          user_token={'user token test'}
        />
      </View>
    </SafeAreaView>
  );
}

export default App;
