When I try to launch my react-native project I get the following error:
AWSPinpointProvider record event failed: Credentials error missing credentials in config. I am not using the record function yet, so I assume this is coming from the configure function. I'm new to react-native and AWS pinpoint so where should I have the credentials configured? I have a ~/.aws/credentials and ~/.aws/config files and I can connect to cognito, it is only pinpoint that is causing problems. And of course I am using aws amplify. Any help would be appreciated.

```
import { withAuthenticator } from 'aws-amplify-react-native';  
import Auth from '@aws-amplify/auth';
import Analytics from '@aws-amplify/analytics';
import awsconfig from './aws-exports';
Auth.configure(awsconfig);
Analytics.configure(awsconfig);

```

I expect to see events like app launch in Pinpoint. I at least expect it not to crash the app.