implement redux toolkit for manage globle state

This commit is contained in:
Jaanu423
2025-09-16 18:30:30 +05:30
parent 6ed8163d25
commit a931f886b2
7 changed files with 317 additions and 160 deletions
+11 -2
View File
@@ -1,9 +1,18 @@
/**
* @format
*/
import React from 'react';
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
import { Provider } from 'react-redux';
import { store } from './src/redux/store';
AppRegistry.registerComponent(appName, () => App);
// ✅ Wrapper with Provider
const ReduxWrapper = () => (
<Provider store={store}>
<App />
</Provider>
);
AppRegistry.registerComponent(appName, () => ReduxWrapper);