I am using "@toruslabs/customauth-react-native-sdk" version 4.0.1 for getting toruskey but having issue in ios [Error: getTorusKey: ] in android it is working fine

Please share your tKey Instance Code similar to https://github.com/Web3Auth/web3auth-core-kit-examples/blob/main/tkey-react-native/tkey-react-native-firebase-example/tkey.ts

and your package.json

Thank you for your quick response.
Here are the files.

Tkey.ts

import ThresholdKey from '@tkey/core';
import SecurityQuestionsModule from '@tkey/security-questions';
import SFAServiceProvider from '@tkey/service-provider-sfa';
import TorusStorageLayer from '@tkey/storage-layer-torus';
import {ShareTransferModule} from '@tkey/share-transfer';
import {ShareSerializationModule} from '@tkey/share-serialization';
import {EthereumPrivateKeyProvider} from '@web3auth/ethereum-provider';

const clientId =
  'BA1b0eOIiYP3641xmmjWTYYwEjn4LUVith7iDB9BYk1HK2ufh5Kz3bdyASTHxvrj7C3RLJMZh_aEHPNbu080rNI'; // get from https://dashboard.web3auth.io

const chainConfig = {
  chainId: '0x13881',
  rpcTarget: 'https://rpc.ankr.com/eth',
  displayName: 'testnet',
  blockExplorer: 'https://etherscan.io/',
  ticker: 'ETH',
  tickerName: 'Ethereum',
};

const web3AuthOptions: any = {
  clientId, // Get your Client ID from Web3Auth Dashboard
  chainConfig,
  web3AuthNetwork: 'testnet', // ["cyan", "testnet"]
};

// Configuration of Service Provider
const serviceProvider = new SFAServiceProvider({web3AuthOptions});

export const ethereumPrivateKeyProvider = new EthereumPrivateKeyProvider({
  config: {
    chainConfig,
  },
});

// Instantiation of Storage Layer
const storageLayer = new TorusStorageLayer({
  hostUrl: 'https://metadata.tor.us',
});

// Configuration of Modules
const shareTransferModule = new ShareTransferModule();
const shareSerializationModule = new ShareSerializationModule();
const securityQuestionsModule = new SecurityQuestionsModule();

// Instantiation of tKey
export const tKeyInstance = new ThresholdKey({
  serviceProvider,
  storageLayer,
  modules: {
    shareTransfer: shareTransferModule,
    securityQuestions: securityQuestionsModule,
    shareSerialization: shareSerializationModule,
  },
});

packages.json

{
  "name": "appName",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "generate": "plop",
    "nodeify": "rn-nodeify --hack --install crypto,url,http,zlib,https,util,stream",
  },
  "dependencies": {
    "@ant-design/icons-react-native": "^2.0.0",
    "@invertase/react-native-apple-authentication": "^1.1.2",
    "@react-native-async-storage/async-storage": "^1.19.2",
    "@react-native-community/checkbox": "^0.5.15",
    "@react-native-community/clipboard": "^1.2.3",
    "@react-native-community/datetimepicker": "^7.1.0",
    "@react-native-community/google-signin": "^5.0.0",
    "@react-native-community/netinfo": "^9.3.7",
    "@react-native-firebase/analytics": "^11.3.3",
    "@react-native-firebase/app": "^11.3.3",
    "@react-native-firebase/crashlytics": "^11.3.1",
    "@react-native-firebase/dynamic-links": "^11.3.3",
    "@react-native-firebase/messaging": "^11.3.3",
    "@react-native-firebase/remote-config": "^11.3.3",
    "@react-native-picker/picker": "^2.4.10",
    "@react-navigation/bottom-tabs": "^6.5.8",
    "@react-navigation/native": "^6.1.7",
    "@react-navigation/native-stack": "^6.9.13",
    "@sentry/react-native": "^5.9.0",
    "@stripe/stripe-react-native": "^0.27.2",
    "@tkey/core": "^11.0.0",
    "@tkey/security-questions": "^11.0.0",
    "@tkey/service-provider-sfa": "^10.1.1",
    "@tkey/share-serialization": "^11.0.0",
    "@tkey/share-transfer": "^11.0.0",
    "@tkey/storage-layer-torus": "^11.0.0",
    "@tradle/react-native-http": "^2.0.0",
    "@twotalltotems/react-native-otp-input": "^1.3.5",
    "@web3auth/ethereum-provider": "^6.1.7",
    "accordion-collapse-react-native": "^1.1.1",
    "android": "0.0.8",
    "assert": "^1.5.0",
    "asyncstorage-down": "^4.2.0",
    "axios": "^0.21.1",
    "babel-preset-env": "^1.7.0",
    "browserify-zlib": "^0.1.4",
    "buffer": "^4.9.2",
    "console-browserify": "^1.2.0",
    "constants-browserify": "^1.0.0",
    "crypto": "^1.0.1",
    "dependencies": "0.0.1",
    "deprecated-react-native-prop-types": "^2.3.0",
    "dns.js": "^1.0.1",
    "domain-browser": "^1.2.0",
    "eth-crypto": "^1.5.0",
    "ethers": "^5.7.2",
    "events": "^1.1.1",
    "formik": "^1.5.8",
    "https": "^1.0.0",
    "https-browserify": "0.0.1",
    "ios": "0.0.1",
    "jsc-android": "^241213.1.0",
    "keythereum": "^1.0.4",
    "lodash": "^4.17.15",
    "lottie-react-native": "^5.1.6",
    "moment": "^2.29.4",
    "node-libs-browser": "^2.2.1",
    "opencollective-postinstall": "^2.0.3",
    "patch-package": "^7.0.0",
    "path-browserify": "0.0.0",
    "plop": "^2.5.3",
    "process": "^0.11.10",
    "prop-types": "^15.7.2",
    "punycode": "^1.4.1",
    "querystring-es3": "^0.2.1",
    "react": "18.2.0",
    "react-native": "0.72.1",
    "react-native-animated-loader": "0.0.8",
    "react-native-calendar-events": "^2.2.0",
    "react-native-chart-kit": "^6.12.0",
    "react-native-check-box": "^2.1.7",
    "react-native-check-version": "^1.0.20",
    "react-native-cn-quill": "^0.7.18",
    "react-native-credit-card-input": "^0.4.1",
    "react-native-crisp-chat-sdk": "^0.13.4",
    "react-native-crypto": "^2.2.0",
    "react-native-device-info": "^10.2.1",
    "react-native-document-picker": "^8.2.0",
    "react-native-dropdown-picker": "^5.4.4",
    "react-native-encrypted-storage": "^4.0.3",
    "react-native-fast-image": "^8.3.4",
    "react-native-fbsdk-next": "^7.3.3",
    "react-native-flash-message": "^0.2.1",
    "react-native-fs": "^2.16.2",
    "react-native-geocoding": "^0.4.0",
    "react-native-gesture-handler": "^2.12.1",
    "react-native-get-location": "^1.4.2",
    "react-native-htmlview": "^0.16.0",
    "react-native-icon-badge": "^1.1.3",
    "react-native-image-crop-picker": "^0.30.0",
    "react-native-image-picker": "^5.4.2",
    "react-native-image-progress": "^1.1.1",
    "react-native-image-zoom-viewer": "^2.2.27",
    "react-native-keyboard-manager": "^4.0.13-16",
    "react-native-level-fs": "^3.0.0",
    "react-native-marquee-view": "^1.0.5",
    "react-native-material-menu": "^1.1.3",
    "react-native-modal": "^11.5.6",
    "react-native-modal-datetime-picker": "^17.1.0",
    "react-native-moengage": "^8.2.0",
    "react-native-multiple-select": "^0.5.5",
    "react-native-nfc-manager": "^3.13.2",
    "react-native-pager-view": "^5.1.8",
    "react-native-picker-select": "^7.0.0",
    "react-native-plotly": "^6.0.0",
    "react-native-progress": "^5.0.0",
    "react-native-randombytes": "^3.6.1",
    "react-native-reanimated": "^3.4.2",
    "react-native-reanimated-carousel": "^3.4.0",
    "react-native-render-html": "^6.3.4",
    "react-native-safe-area-context": "^4.7.1",
    "react-native-safe-area-view": "^1.1.1",
    "react-native-screens": "^3.24.0",
    "react-native-share": "^7.3.7",
    "react-native-simple-toast": "^1.0.0",
    "react-native-splash-screen": "^3.2.0",
    "react-native-storage": "^1.0.1",
    "react-native-svg": "^12.4.4",
    "react-native-svg-transformer": "^1.0.0",
    "react-native-swiper": "^1.6.0",
    "react-native-swiper-flatlist": "^3.0.18",
    "react-native-switch": "^1.5.0",
    "react-native-vector-icons": "^9.2.0",
    "react-native-version-check": "^3.4.7",
    "react-native-video": "^5.2.1",
    "react-native-webview": "^11.2.3",
    "react-redux": "^7.1.3",
    "readable-stream": "^1.0.33",
    "redux": "^4.0.4",
    "redux-thunk": "^2.3.0",
    "rn-fetch-blob": "^0.12.0",
    "rn-range-slider": "^2.0.4",
    "stream": "0.0.2",
    "stream-browserify": "^3.0.0",
    "string_decoder": "^0.10.31",
    "styled-components": "^6.0.7",
    "timers-browserify": "^1.4.2",
    "tty-browserify": "0.0.0",
    "url": "^0.10.3",
    "util": "^0.10.4",
    "vm-browserify": "0.0.4",
    "web3": "^1.7.3",
    "web3-eth-accounts": "^1.7.3",
    "web3-utils": "^1.2.6",
    "yup": "^0.27.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@ethersproject/shims": "^5.7.0",
    "@react-native/eslint-config": "^0.72.2",
    "@react-native/metro-config": "^0.72.7",
    "@tsconfig/react-native": "^3.0.0",
    "@types/metro-config": "^0.76.3",
    "@types/react": "^18.0.24",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.2.1",
    "bn.js": "^5.2.1",
    "eslint": "^8.19.0",
    "jest": "^29.2.1",
    "metro-react-native-babel-preset": "0.76.5",
    "prettier": "^2.4.1",
    "react-test-renderer": "18.2.0",
    "typescript": "4.8.4"
  },
  "engines": {
    "node": ">=16"
  },
  "react-native": {
    "zlib": "browserify-zlib",
    "console": "console-browserify",
    "constants": "constants-browserify",
    "crypto": "react-native-crypto",
    "dns": "dns.js",
    "net": "react-native-tcp",
    "domain": "domain-browser",
    "http": "@tradle/react-native-http",
    "https": "https-browserify",
    "os": "react-native-os",
    "path": "path-browserify",
    "querystring": "querystring-es3",
    "fs": "react-native-level-fs",
    "_stream_transform": "readable-stream/transform",
    "_stream_readable": "readable-stream/readable",
    "_stream_writable": "readable-stream/writable",
    "_stream_duplex": "readable-stream/duplex",
    "_stream_passthrough": "readable-stream/passthrough",
    "dgram": "react-native-udp",
    "stream": "stream-browserify",
    "timers": "timers-browserify",
    "tty": "tty-browserify",
    "vm": "vm-browserify",
    "tls": false
  },
  "browser": {
    "zlib": "browserify-zlib",
    "console": "console-browserify",
    "constants": "constants-browserify",
    "crypto": "react-native-crypto",
    "dns": "dns.js",
    "net": "react-native-tcp",
    "domain": "domain-browser",
    "http": "@tradle/react-native-http",
    "https": "https-browserify",
    "os": "react-native-os",
    "path": "path-browserify",
    "querystring": "querystring-es3",
    "fs": "react-native-level-fs",
    "_stream_transform": "readable-stream/transform",
    "_stream_readable": "readable-stream/readable",
    "_stream_writable": "readable-stream/writable",
    "_stream_duplex": "readable-stream/duplex",
    "_stream_passthrough": "readable-stream/passthrough",
    "dgram": "react-native-udp",
    "stream": "stream-browserify",
    "timers": "timers-browserify",
    "tty": "tty-browserify",
    "vm": "vm-browserify",
    "tls": false
  }
}

Node version : v18.17.1

@yashovardhan we haven’t had any response to this issue. Any chance for you to look at this and assist to get a resolution?

I am currently experiencing this same error on Android with react native. Any progress yet @yashovardhan

Have you been able to resolve this @jothi.menon