Instabug-React-Native icon indicating copy to clipboard operation
Instabug-React-Native copied to clipboard

RN 0.69 support

Open Abhishek2250 opened this issue 3 years ago • 9 comments

Steps to Reproduce the Problem

While building the app for iOS, getting below warning: Screenshot 2022-06-27 at 2 37 13 PM

After building the app, below error is coming on metro bundler: Screenshot 2022-06-27 at 2 35 08 PM

Expected Behavior

Should work as working for react-native version 0.68.1

Actual Behavior

Build warning and runtime error as shown above

Instabug integration code

Instabug.isRunningLive(function (isLive) { if (isLive) { Instabug.start("Token", [Instabug.invocationEvent.none]); } else { Instabug.start("Token", [Instabug.invocationEvent.shake]); } Instabug.setPrimaryColor("#1D82DC"); BugReporting.setFloatingButtonEdge(Instabug.floatingButtonEdge.left, 250); });

SDK Version

SDK 11

React Native, iOS and Android Versions

react-native: 0.69 "instabug-reactnative": "^11.0.1",

Abhishek2250 avatar Jun 27 '22 09:06 Abhishek2250

@Abhishek2250 thank you for reporting this, we're looking into it.

AliAbdelfattah avatar Jun 27 '22 09:06 AliAbdelfattah

Hi @Abhishek2250,

We were able to reproduce this behavior on our side and have created a fix for you in the below snapshot, which updates react-native.config.js file. Could you please give it a try and let us know if the issue is resolved?

Snapshot: npm install https://github.com/Instabug/Instabug-React-Native#snapshot/11.0.1-MOB-8986

DavidMina96 avatar Jun 27 '22 14:06 DavidMina96

@DavidMina96 I'm getting below issue while hitting npm install https://github.com/Instabug/Instabug-React-Native#snapshot/11.0.1-MOB-8986.

Error: zsh: no matches found: https://github.com/Instabug/Instabug-React-Native#snapshot/11.0.1-MOB-8986

Abhishek2250 avatar Jun 28 '22 04:06 Abhishek2250

@Abhishek2250 It seems the # character might not be automatically escaped in your shell. You can escape it with a backslash \#.

The full command would be: npm install https://github.com/Instabug/Instabug-React-Native\#snapshot/11.0.1-MOB-8986

DavidMina96 avatar Jun 29 '22 08:06 DavidMina96

@DavidMina96 I'm not getting the build error now. Thanks for the update. Are you guys going to release new version having this fix?

Abhishek2250 avatar Jul 01 '22 06:07 Abhishek2250

@Abhishek2250 Glad to hear that :) Yes, the fix will be included in a later release.

DavidMina96 avatar Jul 05 '22 11:07 DavidMina96

Still facing the same issue in 11.0.2, also tried in 11.0.1. But no solution to me yet. Tried updating react-native.config.js as @DavidMina96 suggested but nothing seems to work.

mhtchawlaAntino avatar Aug 01 '22 10:08 mhtchawlaAntino

@mhtchawlaAntino RN 0.69 support isn't included in an official release yet. Could you please clarify if you've tried installing the snapshot shared earlier and are still facing an issue? If that's the case, would you please share the error you're getting to look into it?

DavidMina96 avatar Aug 03 '22 12:08 DavidMina96

Yes I tried the snapshot also but error remained same as of @Abhishek2250 even after that, so i had to downgrade my project app to 0.68.0

mhtchawlaAntino avatar Aug 05 '22 05:08 mhtchawlaAntino

@mhtchawlaAntino Apologies for any inconvenience this may be causing. Would you please reach out to us at [email protected] so that we can further investigate the issue in a debugging call?

DavidMina96 avatar Aug 18 '22 11:08 DavidMina96