Discussions
activateAdapty is undefined when importing in React Native
Hello,
I have followed the React Native installation instructions here:
https://docs.adapty.io/docs/react-native-installation
and I have followed the Release Checklist here:
https://docs.adapty.io/docs/release-checklist?_ga=2.239154563.1419214155.1673862153-1229049688.1661964069
However, when I run:
import {adapty, activateAdapty} from "react-native-adapty";
console.log("adapty", adapty);
console.log("activateAdapty", activateAdapty);
I see that neither activateAdapty
nor adapty.paywalls
are defined:
LOG adapty {"activationPromise": null, "addEventListener": [Function anonymous], "bridge": [Function promiseMethodWrapper], "listeners": [], "memoArgs": null, "nativeEmitter": {"_nativeModule": {"addListener": [Function nonPromiseMethodWrapper], "getConstants": [Function anonymous], "handle": [Function promiseMethodWrapper], "removeListeners": [Function nonPromiseMethodWrapper]}}, "shouldWaitUntilReady": false}
LOG activateAdapty undefined