title: React-native - Alert.alert, unrecognized selector sent to instance
body: <p>For unknown reasons my Alert.alert refuse to work. I am basically reusing the code from earlier where it is working. Getting the error:</p>
  
  <blockquote>
    <p>Exception NSArrayl length; unrecognized selector sent to instance
    0x170623440 was thrown while invoking alertWithArgs on targer
    Alertmanager with params.</p>
  </blockquote>
  
  <p>Thanks</p>
  
  <pre><code>acceptFriendRequest(friendsName){
      Alert.alert(
        friendsName + ' wants to add you',
        [
          {text: 'Decline', onPress: () =&gt; console.log('Cancel Pressed'), style: 'cancel',
        },
        {text: 'Accept', onPress: () =&gt;  this.confirmFriendRequest(this), style: 'accept'},
  
      ],
      )
    }
  </code></pre>