There is a typo in the index.js file that causes an error with the Identify function: "ReferenceError: Property 'resolve' doesn't exist"
I'm using mixpanel-react-native v2.3.0
Here is the diff that solved my problem:
diff --git a/node_modules/mixpanel-react-native/index.js b/node_modules/mixpanel-react-native/index.js
index 5ef6f3d..47c7390 100644
--- a/node_modules/mixpanel-react-native/index.js
+++ b/node_modules/mixpanel-react-native/index.js
@@ -192,7 +192,7 @@ export class Mixpanel {
*
*/
identify(distinctId) {
- return new Promise((resolvem, reject) => {
+ return new Promise((resolve, reject) => {
if (!StringHelper.isValid(distinctId)) {
StringHelper.raiseError(PARAMS.DISTINCT_ID);
reject(new Error('Invalid distinctId'));
There is a typo in the index.js file that causes an error with the Identify function: "ReferenceError: Property 'resolve' doesn't exist" I'm using mixpanel-react-native v2.3.0
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.