shakebug-react-native 2.2.1 → 2.2.3
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.
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.2.
|
|
4
|
+
"version": "2.2.3",
|
|
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": {
|
|
@@ -285,7 +285,7 @@ const AddDetailsScreen = ({ media, updateParent, mediaType, themeColor, SDKScree
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
return (
|
|
288
|
-
<SafeAreaView style={{ width: "100%", height: "100%", backgroundColor: themeColor,
|
|
288
|
+
<SafeAreaView style={{ width: "100%", height: "100%", backgroundColor: themeColor, paddingTop: insets.top, paddingBottom: insets.bottom }}>
|
|
289
289
|
<StatusBar backgroundColor={ThemeColor} hidden={false} />
|
|
290
290
|
<KeyboardAvoidingWrapper>
|
|
291
291
|
<>
|
|
@@ -11,12 +11,14 @@ import { ActivityIndicator } from 'react-native';
|
|
|
11
11
|
import DeviceInfo from '../../DeviceInfo';
|
|
12
12
|
import { useGlobalState } from '../Componanats/GlobalStateContext.js';
|
|
13
13
|
import CustomeAlert from 'shakebug-react-native/src/Componanats/CustomAlert.js';
|
|
14
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
14
15
|
|
|
15
16
|
console.disableYellowBox = true;
|
|
16
17
|
console.ignoredYellowBox = ["Warning: Each", "Warning: Failed", "Possible"];
|
|
17
18
|
|
|
18
19
|
const FirstScreen = ({ img, themeColor, SDKScreenTitle }) => {
|
|
19
20
|
|
|
21
|
+
const insets = useSafeAreaInsets();
|
|
20
22
|
|
|
21
23
|
const { setIsScreenShot, setIsRecordingStart } = useGlobalState()
|
|
22
24
|
|
|
@@ -310,7 +312,7 @@ const FirstScreen = ({ img, themeColor, SDKScreenTitle }) => {
|
|
|
310
312
|
// backgroundColor: "#181818"
|
|
311
313
|
|
|
312
314
|
return (
|
|
313
|
-
<SafeAreaView style={{ width: "100%", height: '100%', backgroundColor: themeColor,
|
|
315
|
+
<SafeAreaView style={{ width: "100%", height: '100%', backgroundColor: themeColor, paddingTop: insets.top, paddingBottom: insets.bottom}}>
|
|
314
316
|
<StatusBar backgroundColor={ThemeColor} />
|
|
315
317
|
|
|
316
318
|
<View style={{ width: "100%", height: "100%", backgroundColor: "#e4fdfd" }}>
|
package/src/Screens/Shakebug.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Platform, Alert, AppState, NativeModules, View, StyleSheet, Animated, Dimensions,
|
|
2
|
+
import { Platform, Alert, AppState, NativeModules, View, StyleSheet, Animated, Dimensions, Modal } from 'react-native';
|
|
3
3
|
import ShakeFunction from '../Componanats/ShakeFunction';
|
|
4
4
|
import FirstScreen from './FirstScreen';
|
|
5
5
|
import AddDetailsScreen from './AddDetailsScreen';
|
|
@@ -20,6 +20,7 @@ import { Localization } from '../Componanats/localization';
|
|
|
20
20
|
import { GlobalStateProvider, useGlobalState } from '../Componanats/GlobalStateContext';
|
|
21
21
|
import CustomeAlert from 'shakebug-react-native/src/Componanats/CustomAlert';
|
|
22
22
|
import ReviewModal from 'shakebug-react-native/src/Componanats/ReviewModal';
|
|
23
|
+
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
23
24
|
|
|
24
25
|
console.ignoredYellowBox = ["Warning: Each", "Warning: Failed"];
|
|
25
26
|
|
|
@@ -51,7 +52,7 @@ global.isScreeenShotTaken = false;
|
|
|
51
52
|
global.restrictedViews = [];
|
|
52
53
|
global.currentScreen = ""
|
|
53
54
|
global.isShakebugSDKOpen = false;
|
|
54
|
-
global.sdk_version = "2.2.
|
|
55
|
+
global.sdk_version = "2.2.3";
|
|
55
56
|
global.app_lunch_count = 0;
|
|
56
57
|
global.POPUP_LAUNCH_THRESHOLD = 3;
|
|
57
58
|
global.POPUP_COOLDOWN_DAYS = 2;
|
|
@@ -450,30 +451,32 @@ function Shakebug({ children, Android_appkey, iOS_appkey, showTutorialScreenFirs
|
|
|
450
451
|
};
|
|
451
452
|
|
|
452
453
|
return (
|
|
453
|
-
<
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
>
|
|
459
|
-
<GlobalStateProvider>
|
|
460
|
-
<NavigationProvider>
|
|
461
|
-
<NavigationContainer />
|
|
462
|
-
</NavigationProvider>
|
|
463
|
-
</GlobalStateProvider>
|
|
464
|
-
|
|
465
|
-
<CustomeAlert
|
|
466
|
-
isVisible={isAlert}
|
|
467
|
-
text={isAlertText}
|
|
468
|
-
color={ThemeColor}
|
|
469
|
-
OnPrees={() => {
|
|
470
|
-
setAlertText("")
|
|
471
|
-
setIsAlert(false)
|
|
454
|
+
<SafeAreaProvider>
|
|
455
|
+
<View
|
|
456
|
+
style={{
|
|
457
|
+
width: '100%',
|
|
458
|
+
height: '100%'
|
|
472
459
|
}}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
460
|
+
>
|
|
461
|
+
<GlobalStateProvider>
|
|
462
|
+
<NavigationProvider>
|
|
463
|
+
<NavigationContainer />
|
|
464
|
+
</NavigationProvider>
|
|
465
|
+
</GlobalStateProvider>
|
|
466
|
+
|
|
467
|
+
<CustomeAlert
|
|
468
|
+
isVisible={isAlert}
|
|
469
|
+
text={isAlertText}
|
|
470
|
+
color={ThemeColor}
|
|
471
|
+
OnPrees={() => {
|
|
472
|
+
setAlertText("")
|
|
473
|
+
setIsAlert(false)
|
|
474
|
+
}}
|
|
475
|
+
/>
|
|
476
|
+
|
|
477
|
+
<ReviewModal color={ThemeColor} visible={showModal} onClose={() => { setShowModal(false) }} />
|
|
478
|
+
</View>
|
|
479
|
+
</SafeAreaProvider>
|
|
477
480
|
)
|
|
478
481
|
}
|
|
479
482
|
|