shakebug-react-native 2.3.6 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shakebug-react-native",
|
|
3
3
|
"title": "shakebug-react-native",
|
|
4
|
-
"version": "2.3.
|
|
4
|
+
"version": "2.3.8",
|
|
5
5
|
"description": "Shakebug allows users to report the bug from your mobile phone for your application. Here users just need to shake their mobile and all the data regarding bugs & crashes can be seen by developers through their log in panel easily",
|
|
6
6
|
"main": "src/index.tsx",
|
|
7
7
|
"scripts": {
|
|
@@ -490,27 +490,26 @@ const ShakeFunction = ({ children, themeColor, showTutorialScreen, SDKScreenTitl
|
|
|
490
490
|
>
|
|
491
491
|
|
|
492
492
|
<ShakebugCapture ref={ref} options={{ format: "jpg", quality: 1, }} style={{ flex: 1 }}>
|
|
493
|
-
{
|
|
494
|
-
|
|
495
|
-
|
|
493
|
+
<View style={{ flex: 1 }}>
|
|
494
|
+
{children}
|
|
495
|
+
</View>
|
|
496
|
+
{isDraw && (
|
|
497
|
+
<RNDrawingView
|
|
498
|
+
ref={canvasRef}
|
|
496
499
|
style={{
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
+
position: 'absolute',
|
|
501
|
+
top: 0,
|
|
502
|
+
left: 0,
|
|
503
|
+
right: 0,
|
|
504
|
+
bottom: 0,
|
|
505
|
+
width: '100%',
|
|
506
|
+
height: '100%',
|
|
507
|
+
zIndex: 999
|
|
500
508
|
}}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
style={{ width: '100%', height: '100%' }}
|
|
506
|
-
color={'red'}
|
|
507
|
-
strokeWidth={Platform.OS == 'android' ? 5 : 3}
|
|
508
|
-
/>
|
|
509
|
-
|
|
510
|
-
</ImageBackground>
|
|
511
|
-
) : (<View style={{ flex: 1 }}>
|
|
512
|
-
{children}
|
|
513
|
-
</View>)}
|
|
509
|
+
color={'red'}
|
|
510
|
+
strokeWidth={Platform.OS == 'android' ? 5 : 3}
|
|
511
|
+
/>
|
|
512
|
+
)}
|
|
514
513
|
|
|
515
514
|
|
|
516
515
|
</ShakebugCapture>
|
|
@@ -555,18 +554,9 @@ const ShakeFunction = ({ children, themeColor, showTutorialScreen, SDKScreenTitl
|
|
|
555
554
|
|
|
556
555
|
{isDraw == false ? (
|
|
557
556
|
<TouchableOpacity
|
|
558
|
-
onPress={
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
try {
|
|
562
|
-
ImgUrl = Platform.OS === 'android' ? await captureScreen({ format: 'jpg', quality: 1 }) : (ref.current ? await ref.current.capture() : null);
|
|
563
|
-
} catch (e) {
|
|
564
|
-
log.error("Failed to capture screenshot in stop recording", e);
|
|
565
|
-
}
|
|
566
|
-
if (ImgUrl != undefined || ImgUrl != null) {
|
|
567
|
-
setImg(ImgUrl)
|
|
568
|
-
setIsDraw(true)
|
|
569
|
-
}
|
|
557
|
+
onPress={() => {
|
|
558
|
+
setIsDraw(true)
|
|
559
|
+
global.isDraw = true
|
|
570
560
|
}}
|
|
571
561
|
hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
|
572
562
|
>
|
|
@@ -576,6 +566,7 @@ const ShakeFunction = ({ children, themeColor, showTutorialScreen, SDKScreenTitl
|
|
|
576
566
|
<TouchableOpacity
|
|
577
567
|
onPress={() => {
|
|
578
568
|
setIsDraw(false)
|
|
569
|
+
global.isDraw = false
|
|
579
570
|
ClearCanvas(canvasRef)
|
|
580
571
|
}}
|
|
581
572
|
hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}
|
package/src/Screens/Shakebug.js
CHANGED
|
@@ -53,7 +53,7 @@ global.isScreeenShotTaken = false;
|
|
|
53
53
|
global.restrictedViews = [];
|
|
54
54
|
global.currentScreen = ""
|
|
55
55
|
global.isShakebugSDKOpen = false;
|
|
56
|
-
global.sdk_version = "2.3.
|
|
56
|
+
global.sdk_version = "2.3.8";
|
|
57
57
|
global.app_lunch_count = 0;
|
|
58
58
|
global.POPUP_LAUNCH_THRESHOLD = 3;
|
|
59
59
|
global.POPUP_COOLDOWN_DAYS = 2;
|