Closed raymondpebble closed 3 years ago
@raymondpebble You can try applying a patch via patch-package to swap out the import, assuming you have the correct one in your project dependencies.
patches/@daily-co+react-native-daily-js+0.13.0.patch
diff --git a/node_modules/@daily-co/react-native-daily-js/dist/iOSCallObjectBundleCache.js b/node_modules/@daily-co/react-native-daily-js/dist/iOSCallObjectBundleCache.js
index d9825b0..9417e70 100644
--- a/node_modules/@daily-co/react-native-daily-js/dist/iOSCallObjectBundleCache.js
+++ b/node_modules/@daily-co/react-native-daily-js/dist/iOSCallObjectBundleCache.js
@@ -39,7 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
-var async_storage_1 = __importDefault(require("@react-native-community/async-storage"));
+var async_storage_1 = __importDefault(require("@react-native-async-storage/async-storage"));
var FIELD_CACHE_EXPIRY = 'expiry';
var FIELD_BUNDLE_CODE = 'code';
var FIELD_BUNDLE_LAST_MODIFIED = 'last-modified';
Hi, @raymondpebble! Thanks for the feature request, and I'm sorry it took me so long to see this. I've tagged @kompfner who is the lead on this and can follow up.
Thank you Kimberlee!
And thank you for the suggestion dburdan
Hi there @kompfner, are you able to share any updates on this? I've tested with 0.64.2 and 0.64.0 and both have the same issue.
Hi! Thanks for flagging the issue, and pardon the delay. We're currently validating the fix and hope to have it in our next release. Appreciate your patience!
A new version has been published with the fix. Note the peer dependency change (as you noted above). Thanks again for reporting this, and do let us know if you run into any other issues!
Perfect, thanks kompfner!
Feature request
Hi! Could this library be updated to support react native 0.64?
This library has a peer dep on
@react-native-community/async-storage
whose latest version has a peer dep on React 16. RN 0.64 has a peer dependency on React 17, so unfortunately can't use this with newer RN projects currently :( .Async storage moved organizations and the newer package location has support for RN 0.64, so hopefully it would be an easy change.
E.g.
Why you need this
To use daily in newer RN projects.