24 lines
625 B
JavaScript
24 lines
625 B
JavaScript
|
|
/**
|
||
|
|
* quiXzoom App Entry Point
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { AppRegistry } from 'react-native';
|
||
|
|
import { Provider } from 'react-redux';
|
||
|
|
import { PersistGate } from 'redux-persist/integration/react';
|
||
|
|
import { store, persistor } from './src/store/store';
|
||
|
|
import AppNavigator from './src/navigation/AppNavigator';
|
||
|
|
import { name as appName } from './app.json';
|
||
|
|
|
||
|
|
// Root component with Redux and persistence
|
||
|
|
function Root() {
|
||
|
|
return (
|
||
|
|
<Provider store={store}>
|
||
|
|
<PersistGate loading={null} persistor={persistor}>
|
||
|
|
<AppNavigator />
|
||
|
|
</PersistGate>
|
||
|
|
</Provider>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
AppRegistry.registerComponent(appName, () => Root);
|