Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AesCrypto.encrypt is not a function. #6

Open
ashish-dhiman opened this issue Apr 25, 2019 · 3 comments
Open

AesCrypto.encrypt is not a function. #6

ashish-dhiman opened this issue Apr 25, 2019 · 3 comments

Comments

@ashish-dhiman
Copy link

I am creating a react native project with expo.
When I try to run the sample code, I encounter the said error "[Unhandled promise rejection: TypeError: AesCrypto.encrypt is not a function. (In 'AesCrypto.encrypt(plaintxt, secretKey, iv)', 'AesCrypto.encrypt' is undefined)]".

@Rotarepmi
Copy link

Any updates to that issue?

@michelegoh
Copy link

Have you ejected your app? I don't think this works on Expo projects.

@Rotarepmi
Copy link

Yup it won't work on Expo. You have to use plain react-native or ExpoKit.
While using ExpoKit you have to publish the project first and then you can use ./android/gradlew installDebug.
Should work fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants