Redux Toolkit is a powerful tool for managing state in your React Native app. It is a set of tools that help you write better Redux code faster.
Under the hood, we are using Redux Toolkit for state management.
Go to @/store/index.ts file.
You’ll see bunch of codes. But Important part is: export const store = configureStore({
reducer: {
theme: themeReducer,
search: searchReducer,
admob: admobReducer,
// You can add more reducers here
},
});
Theme Reducer works for Dark / Light / System theme.
Search Reducer works for search state. Like Social Media App Search.
If you don’t use Google Admob, you can remove Admob Reducer.
Admob Reducer works for AdMob state.
Thats it! You can create your own reducers and add them to the store.