react-native-sensitive-info icon indicating copy to clipboard operation
react-native-sensitive-info copied to clipboard

RNSInfo doesnt have getItem or setItem in react native version 0.76

Open nishmitha03 opened this issue 1 year ago • 4 comments

import RNSInfo from 'react-native-sensitive-info';

export const fetchDataInfo = async (storageData: string) => { try { const response = await RNSInfo.getItem(storageData, SENSITIVE_INFO_OPTIONS); if (response && response !== null) { return JSON.parse(response); } else { return null; } } catch (e) { return null; } };

Here the console log of RNSInfo is below, the RNSInfo doesnt have getItem or setItem now LOG RNSInfo {"cancelFingerprintAuth": [Function cancelFingerprintAuth], "setInvalidatedByBiometricEnrollment": [Function setInvalidatedByBiometricEnrollment]}

Im using the latest react native version 0.76.0 and facing issues here.

react-native: 0.76.0 react-native-sensitive-info: 5.5.8

Any assistance here would be helpful.

nishmitha03 avatar Jan 23 '25 07:01 nishmitha03

Any update/fix about this? Otherwise we can clearly define this library as dead. Anyone found a fix for iOS? I have react-native version 0.76.8 and it still works on Android. However on iOS, I get:

[TypeError: 0, _$$_REQUIRE(_dependencyMap[2](...)-native-sensitive-info").getItem is not a function (it is undefined)]

This happens when I try to call getItem.

alimoli avatar Mar 31 '25 17:03 alimoli

@alimoli I followed this https://github.com/mCodex/react-native-sensitive-info/issues/424#issuecomment-2511187606 and it worked for me.

nishmitha03 avatar Apr 01 '25 04:04 nishmitha03

@alimoli I followed this #424 (comment) and it worked for me.

Thank you for your message and the share! 🙏 Unfortunately, it does not solve my situation as my main issue are the "storage" functions like getItem which are still undefined. I am trying to edit the code and see if I am able to fix it. In that case, I will share my patch. 🤞

alimoli avatar Apr 01 '25 06:04 alimoli

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 06 '25 04:05 stale[bot]

@alimoli I followed this #424 (comment) and it worked for me.

Thank you for your message and the share! 🙏 Unfortunately, it does not solve my situation as my main issue are the "storage" functions like getItem which are still undefined. I am trying to edit the code and see if I am able to fix it. In that case, I will share my patch. 🤞

Have the same issue on Android. Seems like problem with legacy module in new architecture. I see a work in feat/v6 branch, but there is no release from it. My app will soon run out of time for Google Play availability.

Tried to make a manual build from that branch, but without success.

rstefek avatar Aug 08 '25 16:08 rstefek

@rstefek use approach from the recommended in #424 comment I followed the instructions and now it is working. You will need to create patch ( search for instructions - create patch using npm or yarn (yarn 2+ already have all the necessary packages ))

LYevhen avatar Aug 18 '25 10:08 LYevhen

@rstefek use approach from the recommended in #424 comment I followed the instructions and now it is working. You will need to create patch ( search for instructions - create patch using npm or yarn (yarn 2+ already have all the necessary packages ))

I was already using v6.0.0-alpha and there is no such file in node_modules to fix :/

rstefek avatar Aug 18 '25 11:08 rstefek

@rstefek use approach from the recommended in #424 comment I followed the instructions and now it is working. You will need to create patch ( search for instructions - create patch using npm or yarn (yarn 2+ already have all the necessary packages ))

I was already using v6.0.0-alpha and there is no such file in node_modules to fix :/

Rollback to react-native-sensitive-info 5.5.8, is there any other reasons to use alpha on prod?

LYevhen avatar Aug 18 '25 12:08 LYevhen

@rstefek use approach from the recommended in #424 comment I followed the instructions and now it is working. You will need to create patch ( search for instructions - create patch using npm or yarn (yarn 2+ already have all the necessary packages ))

I was already using v6.0.0-alpha and there is no such file in node_modules to fix :/

Rollback to react-native-sensitive-info 5.5.8, is there any other reasons to use alpha on prod?

Last year, I needed to make upgrade because another issue (not sure what it was, but connected to newer react-native). This year I ended up again with oldest react-native compatible with API levels.

rstefek avatar Aug 18 '25 12:08 rstefek

@rstefek use approach from the recommended in #424 comment I followed the instructions and now it is working. You will need to create patch ( search for instructions - create patch using npm or yarn (yarn 2+ already have all the necessary packages ))

I was already using v6.0.0-alpha and there is no such file in node_modules to fix :/

Rollback to react-native-sensitive-info 5.5.8, is there any other reasons to use alpha on prod?

Last year, I needed to make upgrade because another issue (not sure what it was, but connected to newer react-native). This year I ended up again with oldest react-native compatible with API levels.

I have "react-native": "0.77.2" - seems good to me

LYevhen avatar Aug 18 '25 12:08 LYevhen

Seeing the same in react-native 0.79.5.

Tried another library, but it didn't have the getItem style accessing of an array of data.

I've tried raising an MR with react-native-keychain https://github.com/oblador/react-native-keychain/pull/765 to get this functionality in a better maintained library

mattlennon3 avatar Aug 19 '25 07:08 mattlennon3

@alimoli I followed this #424 (comment) and it worked for me.

Thank you for sharing this information. It works fine in my setting (RN 0.81.0, iOS).

nice2seeu avatar Aug 24 '25 12:08 nice2seeu

@rstefek hi. I faced the same issue with a legacy project using an alpha version of the lib. I made it to work with New Arch on v6.0.0-alpha.9

I basically made a fork of the repo with tag of v6.0.0-alpha.9 Made fixes to RNSensitiveInfo, made a build (npm run build), and copied the build folder to my project to node_modules -> made a patch with that.

Here you can copy my patch file:

diff --git a/node_modules/react-native-sensitive-info/build/index.es.js b/node_modules/react-native-sensitive-info/build/index.es.js
index a3b8cf7..f541936 100644
--- a/node_modules/react-native-sensitive-info/build/index.es.js
+++ b/node_modules/react-native-sensitive-info/build/index.es.js
@@ -1,33 +1,18 @@
 import { NativeModules } from 'react-native';
 
-/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */
-
-var __assign = function() {
-    __assign = Object.assign || function __assign(t) {
-        for (var s, i = 1, n = arguments.length; i < n; i++) {
-            s = arguments[i];
-            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
-        }
-        return t;
-    };
-    return __assign.apply(this, arguments);
-};
-
 var RNSensitiveInfo = NativeModules.RNSensitiveInfo;
-var RNSensitiveInfo$1 = __assign({}, RNSensitiveInfo);
+RNSensitiveInfo.setInvalidatedByBiometricEnrollment = function (invalidatedByBiometricEnrollment) {
+    if (RNSensitiveInfo.setInvalidatedByBiometricEnrollment == null) {
+        return undefined;
+    }
+    return RNSensitiveInfo.setInvalidatedByBiometricEnrollment(invalidatedByBiometricEnrollment);
+};
+RNSensitiveInfo.cancelFingerprintAuth = function () {
+    if (RNSensitiveInfo.cancelFingerprintAuth == null) {
+        return undefined;
+    }
+    return RNSensitiveInfo.cancelFingerprintAuth();
+};
 
-export default RNSensitiveInfo$1;
+export { RNSensitiveInfo as default };
 //# sourceMappingURL=index.es.js.map
diff --git a/node_modules/react-native-sensitive-info/build/index.es.js.map b/node_modules/react-native-sensitive-info/build/index.es.js.map
index e74fc3b..178d047 100644
--- a/node_modules/react-native-sensitive-info/build/index.es.js.map
+++ b/node_modules/react-native-sensitive-info/build/index.es.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.es.js","sources":["../node_modules/tslib/tslib.es6.js","../RNSensitiveInfo.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    }\r\n    return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n    return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n    if (m) return m.call(o);\r\n    if (o && typeof o.length === \"number\") return {\r\n        next: function () {\r\n            if (o && i >= o.length) o = void 0;\r\n            return { value: o && o[i++], done: !o };\r\n        }\r\n    };\r\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n    if (!m) return o;\r\n    var i = m.call(o), r, ar = [], e;\r\n    try {\r\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n    }\r\n    catch (error) { e = { error: error }; }\r\n    finally {\r\n        try {\r\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n        }\r\n        finally { if (e) throw e.error; }\r\n    }\r\n    return ar;\r\n}\r\n\r\nexport function __spread() {\r\n    for (var ar = [], i = 0; i < arguments.length; i++)\r\n        ar = ar.concat(__read(arguments[i]));\r\n    return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n};\r\n\r\nexport function __await(v) {\r\n    return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n    return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n    function fulfill(value) { resume(\"next\", value); }\r\n    function reject(value) { resume(\"throw\", value); }\r\n    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n    var i, p;\r\n    return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var m = o[Symbol.asyncIterator], i;\r\n    return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n    if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n    return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n    o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n    if (mod && mod.__esModule) return mod;\r\n    var result = {};\r\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n    __setModuleDefault(result, mod);\r\n    return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n    return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n    if (!privateMap.has(receiver)) {\r\n        throw new TypeError(\"attempted to get private field on non-instance\");\r\n    }\r\n    return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n    if (!privateMap.has(receiver)) {\r\n        throw new TypeError(\"attempted to set private field on non-instance\");\r\n    }\r\n    privateMap.set(receiver, value);\r\n    return value;\r\n}\r\n","import { NativeModules } from 'react-native';\n\nconst { RNSensitiveInfo } = NativeModules;\n\nexport default {\n  ...RNSensitiveInfo,\n  // setInvalidatedByBiometricEnrollment(\n  //   invalidatedByBiometricEnrollment\n  // ): Function {\n  //   if (RNSensitiveInfo.setInvalidatedByBiometricEnrollment == null) {\n  //     return;\n  //   }\n\n  //   return RNSensitiveInfo.setInvalidatedByBiometricEnrollment(\n  //     invalidatedByBiometricEnrollment\n  //   );\n  // },\n  // cancelFingerprintAuth() {\n  //   if (RNSensitiveInfo.cancelFingerprintAuth == null) {\n  //     return;\n  //   }\n\n  //   return RNSensitiveInfo.cancelFingerprintAuth();\n  // },\n};\n"],"names":[],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAeA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrD,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7D,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7B,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,SAAS;AACT,QAAQ,OAAO,CAAC,CAAC;AACjB,MAAK;AACL,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAC3C;;ACpCQ,IAAA,eAAe,GAAK,aAAa,gBAAlB,CAAmB;AAE1C,qCACK,eAAe;;;;"}
\ No newline at end of file
+{"version":3,"file":"index.es.js","sources":["../RNSensitiveInfo.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\n\nconst { RNSensitiveInfo } = NativeModules;\n\nRNSensitiveInfo.setInvalidatedByBiometricEnrollment = (\n  invalidatedByBiometricEnrollment?: boolean,\n) => {\n  if (RNSensitiveInfo.setInvalidatedByBiometricEnrollment == null) {\n    return undefined;\n  }\n\n  return RNSensitiveInfo.setInvalidatedByBiometricEnrollment(\n    invalidatedByBiometricEnrollment,\n  );\n};\n\nRNSensitiveInfo.cancelFingerprintAuth = () => {\n  if (RNSensitiveInfo.cancelFingerprintAuth == null) {\n    return undefined;\n  }\n\n  return RNSensitiveInfo.cancelFingerprintAuth();\n\n};\n\nexport default RNSensitiveInfo;"],"names":[],"mappings":";;AAEQ,IAAA,eAAe,GAAK,aAAa,CAAA,gBAAC;AAE1C,eAAe,CAAC,mCAAmC,GAAG,UACpD,gCAA0C,EAAA;AAE1C,IAAA,IAAI,eAAe,CAAC,mCAAmC,IAAI,IAAI,EAAE;AAC/D,QAAA,OAAO,SAAS,CAAC;AAClB,KAAA;AAED,IAAA,OAAO,eAAe,CAAC,mCAAmC,CACxD,gCAAgC,CACjC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,qBAAqB,GAAG,YAAA;AACtC,IAAA,IAAI,eAAe,CAAC,qBAAqB,IAAI,IAAI,EAAE;AACjD,QAAA,OAAO,SAAS,CAAC;AAClB,KAAA;AAED,IAAA,OAAO,eAAe,CAAC,qBAAqB,EAAE,CAAC;AAEjD,CAAC;;;;"}
\ No newline at end of file
diff --git a/node_modules/react-native-sensitive-info/build/index.js b/node_modules/react-native-sensitive-info/build/index.js
index cd860cd..2f384f1 100644
--- a/node_modules/react-native-sensitive-info/build/index.js
+++ b/node_modules/react-native-sensitive-info/build/index.js
@@ -4,34 +4,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
 
 var reactNative = require('react-native');
 
-/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */
-
-var __assign = function() {
-    __assign = Object.assign || function __assign(t) {
-        for (var s, i = 1, n = arguments.length; i < n; i++) {
-            s = arguments[i];
-            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
-        }
-        return t;
-    };
-    return __assign.apply(this, arguments);
-};
-
 var RNSensitiveInfo = reactNative.NativeModules.RNSensitiveInfo;
-var RNSensitiveInfo$1 = __assign({}, RNSensitiveInfo);
+RNSensitiveInfo.setInvalidatedByBiometricEnrollment = function (invalidatedByBiometricEnrollment) {
+    if (RNSensitiveInfo.setInvalidatedByBiometricEnrollment == null) {
+        return undefined;
+    }
+    return RNSensitiveInfo.setInvalidatedByBiometricEnrollment(invalidatedByBiometricEnrollment);
+};
+RNSensitiveInfo.cancelFingerprintAuth = function () {
+    if (RNSensitiveInfo.cancelFingerprintAuth == null) {
+        return undefined;
+    }
+    return RNSensitiveInfo.cancelFingerprintAuth();
+};
 
-exports.default = RNSensitiveInfo$1;
+exports["default"] = RNSensitiveInfo;
 //# sourceMappingURL=index.js.map
diff --git a/node_modules/react-native-sensitive-info/build/index.js.map b/node_modules/react-native-sensitive-info/build/index.js.map
index e3a15c7..036ed1c 100644
--- a/node_modules/react-native-sensitive-info/build/index.js.map
+++ b/node_modules/react-native-sensitive-info/build/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sources":["../node_modules/tslib/tslib.es6.js","../RNSensitiveInfo.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n    extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n    return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n    extendStatics(d, b);\r\n    function __() { this.constructor = d; }\r\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n    __assign = Object.assign || function __assign(t) {\r\n        for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n            s = arguments[i];\r\n            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n        }\r\n        return t;\r\n    }\r\n    return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n    var t = {};\r\n    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n        t[p] = s[p];\r\n    if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n                t[p[i]] = s[p[i]];\r\n        }\r\n    return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n    return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n    return new (P || (P = Promise))(function (resolve, reject) {\r\n        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n        function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n        step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n    });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n    return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n    function verb(n) { return function (v) { return step([n, v]); }; }\r\n    function step(op) {\r\n        if (f) throw new TypeError(\"Generator is already executing.\");\r\n        while (_) try {\r\n            if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n            if (y = 0, t) op = [op[0] & 2, t.value];\r\n            switch (op[0]) {\r\n                case 0: case 1: t = op; break;\r\n                case 4: _.label++; return { value: op[1], done: false };\r\n                case 5: _.label++; y = op[1]; op = [0]; continue;\r\n                case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n                default:\r\n                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n                    if (t[2]) _.ops.pop();\r\n                    _.trys.pop(); continue;\r\n            }\r\n            op = body.call(thisArg, _);\r\n        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n    }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n    if (k2 === undefined) k2 = k;\r\n    o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n    for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n    var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n    if (m) return m.call(o);\r\n    if (o && typeof o.length === \"number\") return {\r\n        next: function () {\r\n            if (o && i >= o.length) o = void 0;\r\n            return { value: o && o[i++], done: !o };\r\n        }\r\n    };\r\n    throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n    var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n    if (!m) return o;\r\n    var i = m.call(o), r, ar = [], e;\r\n    try {\r\n        while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n    }\r\n    catch (error) { e = { error: error }; }\r\n    finally {\r\n        try {\r\n            if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n        }\r\n        finally { if (e) throw e.error; }\r\n    }\r\n    return ar;\r\n}\r\n\r\nexport function __spread() {\r\n    for (var ar = [], i = 0; i < arguments.length; i++)\r\n        ar = ar.concat(__read(arguments[i]));\r\n    return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n    for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n    for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n        for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n            r[k] = a[j];\r\n    return r;\r\n};\r\n\r\nexport function __await(v) {\r\n    return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n    return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n    function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n    function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n    function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n    function fulfill(value) { resume(\"next\", value); }\r\n    function reject(value) { resume(\"throw\", value); }\r\n    function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n    var i, p;\r\n    return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n    function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n    if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n    var m = o[Symbol.asyncIterator], i;\r\n    return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n    function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n    function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n    if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n    return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n    Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n    o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n    if (mod && mod.__esModule) return mod;\r\n    var result = {};\r\n    if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n    __setModuleDefault(result, mod);\r\n    return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n    return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n    if (!privateMap.has(receiver)) {\r\n        throw new TypeError(\"attempted to get private field on non-instance\");\r\n    }\r\n    return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n    if (!privateMap.has(receiver)) {\r\n        throw new TypeError(\"attempted to set private field on non-instance\");\r\n    }\r\n    privateMap.set(receiver, value);\r\n    return value;\r\n}\r\n","import { NativeModules } from 'react-native';\n\nconst { RNSensitiveInfo } = NativeModules;\n\nexport default {\n  ...RNSensitiveInfo,\n  // setInvalidatedByBiometricEnrollment(\n  //   invalidatedByBiometricEnrollment\n  // ): Function {\n  //   if (RNSensitiveInfo.setInvalidatedByBiometricEnrollment == null) {\n  //     return;\n  //   }\n\n  //   return RNSensitiveInfo.setInvalidatedByBiometricEnrollment(\n  //     invalidatedByBiometricEnrollment\n  //   );\n  // },\n  // cancelFingerprintAuth() {\n  //   if (RNSensitiveInfo.cancelFingerprintAuth == null) {\n  //     return;\n  //   }\n\n  //   return RNSensitiveInfo.cancelFingerprintAuth();\n  // },\n};\n"],"names":["NativeModules"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAeA;AACO,IAAI,QAAQ,GAAG,WAAW;AACjC,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,IAAI,SAAS,QAAQ,CAAC,CAAC,EAAE;AACrD,QAAQ,KAAK,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;AAC7D,YAAY,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7B,YAAY,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACzF,SAAS;AACT,QAAQ,OAAO,CAAC,CAAC;AACjB,MAAK;AACL,IAAI,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAC3C;;ACpCQ,IAAA,eAAe,GAAKA,yBAAa,gBAAlB,CAAmB;AAE1C,qCACK,eAAe;;;;"}
\ No newline at end of file
+{"version":3,"file":"index.js","sources":["../RNSensitiveInfo.ts"],"sourcesContent":["import { NativeModules } from 'react-native';\n\nconst { RNSensitiveInfo } = NativeModules;\n\nRNSensitiveInfo.setInvalidatedByBiometricEnrollment = (\n  invalidatedByBiometricEnrollment?: boolean,\n) => {\n  if (RNSensitiveInfo.setInvalidatedByBiometricEnrollment == null) {\n    return undefined;\n  }\n\n  return RNSensitiveInfo.setInvalidatedByBiometricEnrollment(\n    invalidatedByBiometricEnrollment,\n  );\n};\n\nRNSensitiveInfo.cancelFingerprintAuth = () => {\n  if (RNSensitiveInfo.cancelFingerprintAuth == null) {\n    return undefined;\n  }\n\n  return RNSensitiveInfo.cancelFingerprintAuth();\n\n};\n\nexport default RNSensitiveInfo;"],"names":["NativeModules"],"mappings":";;;;;;AAEQ,IAAA,eAAe,GAAKA,yBAAa,CAAA,gBAAC;AAE1C,eAAe,CAAC,mCAAmC,GAAG,UACpD,gCAA0C,EAAA;AAE1C,IAAA,IAAI,eAAe,CAAC,mCAAmC,IAAI,IAAI,EAAE;AAC/D,QAAA,OAAO,SAAS,CAAC;AAClB,KAAA;AAED,IAAA,OAAO,eAAe,CAAC,mCAAmC,CACxD,gCAAgC,CACjC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,qBAAqB,GAAG,YAAA;AACtC,IAAA,IAAI,eAAe,CAAC,qBAAqB,IAAI,IAAI,EAAE;AACjD,QAAA,OAAO,SAAS,CAAC;AAClB,KAAA;AAED,IAAA,OAAO,eAAe,CAAC,qBAAqB,EAAE,CAAC;AAEjD,CAAC;;;;"}
\ No newline at end of file

You're welcome

RomanSytnyk avatar Sep 11 '25 11:09 RomanSytnyk

@rstefek hi. I faced the same issue with a legacy project using an alpha version of the lib. I made it to work with New Arch on v6.0.0-alpha.9

I basically made a fork of the repo with tag of v6.0.0-alpha.9 Made fixes to RNSensitiveInfo, made a build (npm run build), and copied the build folder to my project to node_modules -> made a patch with that.

You're welcome

Thanks a lot! I'll give it a try and let you know! In case it will work, I owe you a donation!

rstefek avatar Sep 11 '25 12:09 rstefek

@rstefek hi. I faced the same issue with a legacy project using an alpha version of the lib. I made it to work with New Arch on v6.0.0-alpha.9 I basically made a fork of the repo with tag of v6.0.0-alpha.9 Made fixes to RNSensitiveInfo, made a build (npm run build), and copied the build folder to my project to node_modules -> made a patch with that. You're welcome

Thanks a lot! I'll give it a try and let you know! In case it will work, I owe you a donation!

Looks like it work like a charm! @RomanSytnyk Please contact me on sdadmin at seznam dot cz for a donation possibility

rstefek avatar Sep 22 '25 16:09 rstefek

Thanks for the simple fix @RomanSytnyk, I can confirm that this fix works for 6.0.0-alpha.9 with the new architecture. I was looking at other forks with breaking changes but this is the least destructive at the moment.

satheeshwaran avatar Oct 01 '25 16:10 satheeshwaran

Hello folks, i'm so sorry taking too long to respond this.

We have 2 new versions:

5.6.0 and 6.0.0-rc.2

Both are compiling and running on newer react-native versions and many bug fixes.

mCodex avatar Oct 24 '25 18:10 mCodex