Skip to content

Unhandled Promise Rejection #9

Description

@raza-basit

Dependencies:
expo = 20.0.0
react = 16.0.0-alpha.12
react-native = 0.47.0
react-native-openpgp = 1.0.3

var options, encrypted;

options = {
  data: 'Hello, World!',      // input as String
  passwords: ['secret stuff'] // multiple passwords possible
};

openpgp.encrypt(options)
  .then((ciphertext) => {
    encrypted = ciphertext.data; // '-----BEGIN PGP MESSAGE ... END PGP MESSAGE-----'
  })
  .catch((error) => {
    console.log("Something went wrong: " + error);
  }); 

Got Unhanded promise rejection error when try to execute above code example

Possible Unhandled Promise Rejection (id: 0):
Object {}  

@orhan will you please guide me, where I am doing wrong.

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions