title: Push Notifications Configuration Error - React Native
body: <p>I am trying to create push notifications in my react native project both in iOS and android.</p>
  
  <p>I have followed both the configuration instructions for react-native-push-notification and push-notification-ios, however when I run my app I get the following error.</p>
  
  <p><a href="https://i.stack.imgur.com/8SK6d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8SK6d.png" alt="erorr"></a> </p>
  
  <p>After doing some online research I can't seem to find a fix for this problem.</p>
  
  <p>Here is my code</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import PushNotificationIOS from '@react-native-community/push-notification-ios';
  import PushNotification from "react-native-push-notification";
  
  const configure = () =&gt; {
   PushNotification.configure({
  
     onRegister: function(token) {
       //process token
     },
  
     onNotification: function(notification) {
       // process the notification
       // required on iOS only
       notification.finish(PushNotificationIOS.FetchResult.NoData);
     },
  
     permissions: {
       alert: true,
       badge: true,
       sound: true
     },
  
     popInitialNotification: true,
     requestPermissions: true,
  
   });
  };
  
   export {
      configure,
     };</code></pre>
  </div>
  </div>
  </p>