Search code examples
react-nativeamazon-cognitoexpoaws-amplifyaws-pinpoint

RNAWSCognitoModule tries to override versioned host RNAWSCognitoModule in MainApplication


I'm getting an error in react-native (ExpoKit) project after adding aws push notification, I don't have duplicates in MainApplication. How is possible to fix this problem?

  public List<ReactPackage> getPackages() {
    return Arrays.<ReactPackage>asList(
            new RNAWSCognitoPackage(),
            new RNPushNotificationPackage(),
            new WheelPickerPackage()
    );
  }

enter image description here


Solution

  • I did react-native unlink amazon-cognito-identity-js and problem disappeared