Skip to content

Possible Unhandled Promise Rejection Error #9

@juneyoung-kang

Description

@juneyoung-kang

I was following this official react native tutorial and I've already added react-native-activity-feed in my project. But, my application shows nothing and prints some error like below.

Error

Possible Unhandled Promise Rejection (id: 0): TypeError arguments[0].indexOf is not a function...

screen shot 2018-11-02 at 2 46 11 pm

Screenshot

screen shot 2018-11-02 at 2 44 57 pm

Code

import React from 'react';
import SafeAreaView from 'react-native-safe-area-view';
import { StreamApp, FlatFeed } from 'react-native-activity-feed';

const App = () => {
  return (
    <SafeAreaView style={{flex: 1}} forceInset={{ top: 'always' }}>
      <StreamApp
          apiKey="APIKEY"
          appId="APPID"
          token="TOKEN"
      >
        <FlatFeed />
      </StreamApp>
    </SafeAreaView>
  );
};

export default App;

How to resolve this error...? I need some help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions