title: running React Native app with Redux toolkit throws an error
body: <p>When i try to the run app it shows a red screen with this error in the terminal</p>
  <p><code>Error: Unable to resolve module `../../../../src/assets/images` from `node_modules/@reduxjs/toolkit/dist/redux-toolkit.cjs.production.min.js`:</code></p>
  <p>but It occuurs on iOS as well</p>
  <p>The only way to make it go so far has been uninstalling react-redux. I do not have any imports in my code that point to src/assets/images as I dont have an assets/images directory to begin with.</p>
  <p>My index.js:</p>
  <pre><code>import React from 'react';
  import 'expo-asset';
  import 'react-native-gesture-handler';
  import {AppRegistry, View} from 'react-native';
  import App from './App';
  import {name as appName} from './app.json';
  import { Provider as ReduxProvider } from 'react-redux';
  import store from 'src/redux';
  
  import React from 'react';
  import 'expo-asset';
  import 'react-native-gesture-handler';
  import {AppRegistry, View} from 'react-native';
  import App from './App';
  import {name as appName} from './app.json';
  import { Provider as ReduxProvider } from 'react-redux';
  import store from 'src/redux';
  
  const reduxApp = () =&gt; (
  &lt;ReduxProvider store={store}&gt;
      &lt;App /&gt;
  &lt;/ReduxProvider&gt;
  )
  AppRegistry.registerComponent('main', () =&gt; reduxApp);
  </code></pre>
  <p>Redux store:</p>
  <pre><code>import { configureStore, getDefaultMiddleware} from '@reduxjs/toolkit';
  import logger from 'redux-logger';
  import { persistStore } from 'redux-persist';
  import reducer from './reducers'
  
  
  const middleware = [...getDefaultMiddleware(), logger]
  
  const store = configureStore({
    reducer,
    middleware,
  })
  
  export const persistor = persistStore(store);
  
  export default store;
  </code></pre>
  <p>metro.config.js:</p>
  <pre><code>module.exports = {
    transformer: {
      getTransformOptions: async () =&gt; ({
        transform: {
          experimentalImportSupport: false,
          inlineRequires: true,
        },
      }),
    },
  };
  </code></pre>
  <p>babel.config.js</p>
  <pre><code>module.exports = function (api) {
    api.cache(true);
    return {
      presets: ['babel-preset-expo'],
      plugins: [
        [
          'module-resolver',
          {
            alias: {
              src: './src',
              screens: './src/screens',
              redux: './src/assets/images',
              assets: './assets',
            },
          },
        ],
      ],
    };
  };
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Mtyyh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mtyyh.png" alt="screenshot of Android error screen" /></a></p>