hyperledger-archives/indy-sdk-react-native

createWallet is not working.

Opened this issue · 4 comments

I am not able to initialize as well as create a wallet. I tried with the following code.

import indy from 'indy-sdk-react-native';
await indy.createWallet({ id: 'wallet-12' }, { key: 'key11' });

and I got this error.

{"a": "IndyError", "b": 0}

I also tried to create a new Agent but all the time I am getting the same above error.

Expo CLI 4.7.2 environment info:
System:
OS: macOS 12.1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.18.3 - /usr/local/bin/node
npm: 6.14.8 - /usr/local/bin/npm
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
IDEs:
Android Studio: 2021.1 AI-211.7628.21.2111.8139111
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
npmPackages:
expo: ~44.0.2 => 44.0.6
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-web: 0.17.1 => 0.17.1
react-navigation: ^4.4.4 => 4.4.4
npmGlobalPackages:
expo-cli: 4.7.2
Expo Workflow: bare

Hi @umarpazir11,

Thanks for opening the issue. Did you follow the getting started guides and added the required native libraries?

Could you post some logs? That may help debug the problem

Hi @TimoGlastra,

Yes, I followed this full guideline and added all libs.

https://github.com/hyperledger/aries-framework-javascript/blob/main/docs/setup-react-native.md#prerequisites

and this is my code and output.
image

Has anyone faced the same issue?

I got the solution in the android app build.gradle file removes or disable minifyEnabled true from buildTypes it resolved this issue for me.