title: requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager when running android app
body: <p>When running an application on android i get this error. It builds correctly but crashes with exception. I have installed React-native-screens, @React-native/navigation and the dependencies listed on <a href="https://reactnavigation.org/docs/getting-started/" rel="noreferrer">https://reactnavigation.org/docs/getting-started/</a></p>
  <p>com.facebook.react.common.JavascriptException: Invariant Violation: requireNativeComponent: &quot;RNSScreenStackHeaderConfig&quot; was not found in the UIManager.</p>
  <pre><code>This error is located at:
      in RNSScreenStackHeaderConfig
      in Unknown
      in RNSScreen
      in N
      in ForwardRef
      in y
      in E
      in RNSScreenStack
      in w
      in RNCSafeAreaProvider
      in Unknown
      in v
      in Unknown
      in Unknown
      in Unknown
      in ForwardRef
      in Unknown
      in ForwardRef
      in p
      in c
      in P
      in RCTView
      in View
      in RCTView
      in View
      in h, stack:
  </code></pre>
  <p>It builds and runs on iOS fine but when running on android it crashes completely. Is there something I am overlooking here?</p>
  <p>This is my Package json.</p>
  <pre><code>{
    &quot;name&quot;: &quot;&lt;myprojectname&gt;&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;android&quot;: &quot;react-native run-android&quot;,
      &quot;ios&quot;: &quot;react-native run-ios&quot;,
      &quot;start&quot;: &quot;react-native start&quot;,
      &quot;test&quot;: &quot;jest&quot;,
      &quot;lint&quot;: &quot;eslint .&quot;,
      &quot;postinstall&quot;: &quot;npx jetify&quot;,
      &quot;android:bundle:debug&quot;: &quot;react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@react-native-community/async-storage&quot;: &quot;^1.8.1&quot;,
      &quot;@react-native-community/masked-view&quot;: &quot;^0.1.11&quot;,
      &quot;@react-navigation/native&quot;: &quot;^6.0.2&quot;,
      &quot;@react-navigation/native-stack&quot;: &quot;^6.1.0&quot;,
      &quot;@react-navigation/stack&quot;: &quot;^6.0.7&quot;,
      &quot;adbkit&quot;: &quot;^2.11.1&quot;,
      &quot;moment&quot;: &quot;^2.24.0&quot;,
      &quot;react&quot;: &quot;16.9.0&quot;,
      &quot;react-native&quot;: &quot;0.63.0&quot;,
      &quot;react-native-calendar-strip&quot;: &quot;^1.4.1&quot;,
      &quot;react-native-calendars&quot;: &quot;^1.264.0&quot;,
      &quot;react-native-firebase&quot;: &quot;^5.6.0&quot;,
      &quot;react-native-gesture-handler&quot;: &quot;^1.10.3&quot;,
      &quot;react-native-reanimated&quot;: &quot;^2.2.0&quot;,
      &quot;react-native-safe-area-context&quot;: &quot;^3.3.1&quot;,
      &quot;react-native-screens&quot;: &quot;3.1.1&quot;,
      &quot;react-native-snap-carousel&quot;: &quot;^3.8.4&quot;,
      &quot;react-native-vector-icons&quot;: &quot;^6.6.0&quot;,
      &quot;react-navigation&quot;: &quot;^4.4.4&quot;,
      &quot;react-navigation-stack&quot;: &quot;^2.10.4&quot;,
      &quot;react-redux&quot;: &quot;^7.2.0&quot;,
      &quot;redux&quot;: &quot;^4.0.5&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.15.0&quot;,
      &quot;babel-jest&quot;: &quot;24.9.0&quot;,
      &quot;eslint&quot;: &quot;^6.5.1&quot;,
      &quot;jest&quot;: &quot;24.9.0&quot;,
      &quot;jetifier&quot;: &quot;^1.6.5&quot;,
      &quot;metro-react-native-babel-preset&quot;: &quot;^0.66.2&quot;,
      &quot;react-test-renderer&quot;: &quot;16.9.0&quot;
    },
    &quot;jest&quot;: {
      &quot;preset&quot;: &quot;react-native&quot;
    }
  }
  </code></pre>
  <p>I dont really know how to solve this, have tried removing caches, restarting metro, deleting node modules and all &quot;related&quot; errors. This error even happens when I create a fresh project and try installing and using the navigation library.</p>
  <p>This is my entrypoint, example copied from React-navigation snack.</p>
  <pre><code>import * as React from 'react';
  import { View, Text } from 'react-native';
  import { NavigationContainer } from '@react-navigation/native';
  import { createNativeStackNavigator } from '@react-navigation/native-stack';
  import { enableScreens } from 'react-native-screens';
  
  enableScreens(true);
  function HomeScreen() {
    return (
      &lt;View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}&gt;
        &lt;Text&gt;Home Screen&lt;/Text&gt;
      &lt;/View&gt;
    );
  }
  
  function DetailsScreen() {
    return (
      &lt;View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}&gt;
        &lt;Text&gt;Details Screen&lt;/Text&gt;
      &lt;/View&gt;
    );
  }
  
  const Stack = createNativeStackNavigator();
  
  function AppTest() {
    return (
      &lt;NavigationContainer&gt;
        &lt;Stack.Navigator 
        screenOptions={{
          headerStyle: {
            backgroundColor: '#f4511e',
          },
          headerTintColor: '#fff',
          headerTitleStyle: {
            fontWeight: 'bold',
          },
        }}
        initialRouteName=&quot;Home&quot;&gt;
          &lt;Stack.Screen  options={{ title: 'My home' }} name=&quot;Home&quot; component={HomeScreen} /&gt;
          &lt;Stack.Screen  options={{ title: 'My home' }} name=&quot;Details&quot; component={DetailsScreen} /&gt;
        &lt;/Stack.Navigator&gt;
      &lt;/NavigationContainer&gt;
    );
  }
  
  export default AppTest;
  </code></pre>
  <p>Any suggestions?</p>