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

Package dependencies #231

Open
che1974 opened this issue Nov 14, 2023 · 1 comment
Open

Package dependencies #231

che1974 opened this issue Nov 14, 2023 · 1 comment

Comments

@che1974
Copy link

che1974 commented Nov 14, 2023

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch @haskkor/[email protected] for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/@haskkor/react-native-pincode/dist/index.js b/node_modules/@haskkor/react-native-pincode/dist/index.js
index 5a74812..71060df 100644
--- a/node_modules/@haskkor/react-native-pincode/dist/index.js
+++ b/node_modules/@haskkor/react-native-pincode/dist/index.js
@@ -5,7 +5,7 @@ const PinCode_1 = require("./src/PinCode");
 const PinCodeChoose_1 = require("./src/PinCodeChoose");
 const PinCodeEnter_1 = require("./src/PinCodeEnter");
 const utils_1 = require("./src/utils");
-const async_storage_1 = require("@react-native-community/async-storage");
+const async_storage_1 = require("@react-native-async-storage/async-storage");
 const React = require("react");
 const react_native_1 = require("react-native");
 const disableLockScreenDefault = false;
diff --git a/node_modules/@haskkor/react-native-pincode/dist/src/ApplicationLocked.js b/node_modules/@haskkor/react-native-pincode/dist/src/ApplicationLocked.js
index 6609743..0a03147 100644
--- a/node_modules/@haskkor/react-native-pincode/dist/src/ApplicationLocked.js
+++ b/node_modules/@haskkor/react-native-pincode/dist/src/ApplicationLocked.js
@@ -4,7 +4,7 @@ const colors_1 = require("./design/colors");
 const grid_1 = require("./design/grid");
 const delay_1 = require("./delay");
 const utils_1 = require("./utils");
-const async_storage_1 = require("@react-native-community/async-storage");
+const async_storage_1 = require("@react-native-async-storage/async-storage");
 const d3_ease_1 = require("d3-ease");
 const React = require("react");
 const Animate_1 = require("react-move/Animate");
diff --git a/node_modules/@haskkor/react-native-pincode/dist/src/PinCodeEnter.js b/node_modules/@haskkor/react-native-pincode/dist/src/PinCodeEnter.js
index 23baa84..7e901e6 100644
--- a/node_modules/@haskkor/react-native-pincode/dist/src/PinCodeEnter.js
+++ b/node_modules/@haskkor/react-native-pincode/dist/src/PinCodeEnter.js
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
 const delay_1 = require("./delay");
 const PinCode_1 = require("./PinCode");
 const utils_1 = require("./utils");
-const async_storage_1 = require("@react-native-community/async-storage");
+const async_storage_1 = require("@react-native-async-storage/async-storage");
 const React = require("react");
 const react_native_1 = require("react-native");
 const Keychain = require("react-native-keychain");
diff --git a/node_modules/@haskkor/react-native-pincode/dist/src/utils.js b/node_modules/@haskkor/react-native-pincode/dist/src/utils.js
index c509f91..24b0adf 100644
--- a/node_modules/@haskkor/react-native-pincode/dist/src/utils.js
+++ b/node_modules/@haskkor/react-native-pincode/dist/src/utils.js
@@ -1,7 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 const react_native_1 = require("react-native");
-const async_storage_1 = require("@react-native-community/async-storage");
+const async_storage_1 = require("@react-native-async-storage/async-storage");
 const Keychain = require("react-native-keychain");
 var PinResultStatus;
 (function (PinResultStatus) {
diff --git a/node_modules/@haskkor/react-native-pincode/index.tsx b/node_modules/@haskkor/react-native-pincode/index.tsx
index 51828f8..12b170e 100644
--- a/node_modules/@haskkor/react-native-pincode/index.tsx
+++ b/node_modules/@haskkor/react-native-pincode/index.tsx
@@ -4,7 +4,7 @@ import PinCodeChoose from "./src/PinCodeChoose";
 import PinCodeEnter from "./src/PinCodeEnter";
 import { hasPinCode, deletePinCode, resetInternalStates, PinResultStatus } from "./src/utils";
 
-import AsyncStorage from '@react-native-community/async-storage'
+import AsyncStorage from '@react-native-async-storage/async-storage'
 import * as React from "react";
 import { View, StyleSheet, StyleProp, ViewStyle, TextStyle } from "react-native";
 

This issue body was partially generated by patch-package.

@j-q-in-berlin
Copy link

Thanks! I was also needing this. This fixes the "AsyncStorage is null" problem if anyone is wondering.

@haskkor+react-native-pincode+1.22.6.patch is the filename for the patch if anyone needs it.

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

2 participants