shakebug-react-native 2.2.4 → 2.2.6

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",
4
+ "version": "2.2.6",
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": {
@@ -1,4 +1,4 @@
1
- import { View, Text, TouchableOpacity, Image, TextInput, SafeAreaView, PanResponder, Alert, StyleSheet, Keyboard, LogBox, Platform, StatusBar, NativeModules, BackHandler, DeviceEventEmitter, Dimensions } from 'react-native'
1
+ import { View, Text, TouchableOpacity, Image, TextInput, PanResponder, Alert, StyleSheet, Keyboard, LogBox, Platform, StatusBar, NativeModules, BackHandler, DeviceEventEmitter, Dimensions } from 'react-native'
2
2
  import React, { useState, useRef, useEffect } from 'react'
3
3
  import { launchImageLibrary } from '../../ImageOrVedioPicker/src/index';
4
4
  import { AddIssueApi } from '../APIs/AddIssue';
@@ -13,7 +13,8 @@ import KeyboardAvoidingWrapper from '../Componanats/KeyboardAvoidingWrapper';
13
13
  import { useGlobalState } from 'shakebug-react-native/src/Componanats/GlobalStateContext';
14
14
  import CustomeAlert from 'shakebug-react-native/src/Componanats/CustomAlert';
15
15
  import NetInfo from 'shakebug-react-native/NetInfo/src';
16
- import { useSafeAreaInsets } from 'react-native-safe-area-context';
16
+ import { SafeAreaView } from 'react-native-safe-area-context';
17
+
17
18
 
18
19
  console.ignoredYellowBox = ["Warning: Each", "Warning: Failed", "Non-serializable"];
19
20
 
@@ -287,7 +288,7 @@ const AddDetailsScreen = ({ media, updateParent, mediaType, themeColor, SDKScree
287
288
  }
288
289
 
289
290
  return (
290
- <SafeAreaView style={{ width: "100%", height: "100%", backgroundColor: themeColor, paddingTop: insets.top, paddingBottom: insets.bottom }}>
291
+ <SafeAreaView style={{ width: "100%", height: "100%", backgroundColor: themeColor}}>
291
292
  <StatusBar backgroundColor={ThemeColor} hidden={false} />
292
293
  <KeyboardAvoidingWrapper>
293
294
  <>
@@ -11,15 +11,12 @@ 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';
15
14
 
16
15
  console.disableYellowBox = true;
17
16
  console.ignoredYellowBox = ["Warning: Each", "Warning: Failed", "Possible"];
18
17
 
19
18
  const FirstScreen = ({ img, themeColor, SDKScreenTitle }) => {
20
19
 
21
- const insets = useSafeAreaInsets();
22
-
23
20
  const { setIsScreenShot, setIsRecordingStart } = useGlobalState()
24
21
 
25
22
  const ThemeColor = themeColor ? themeColor : "#1dd3e3";
@@ -312,7 +309,7 @@ const FirstScreen = ({ img, themeColor, SDKScreenTitle }) => {
312
309
  // backgroundColor: "#181818"
313
310
 
314
311
  return (
315
- <SafeAreaView style={{ width: "100%", height: '100%', backgroundColor: themeColor, paddingTop: insets.top, paddingBottom: insets.bottom}}>
312
+ <View style={{ width: "100%", height: '100%', backgroundColor: themeColor, paddingTop: Platform.OS == 'android' ? DeviceInfo?.getSystemVersion() > 14 ? StatusBar.currentHeight : 0 : StatusBar.currentHeight, paddingBottom: Platform.OS == 'android' ? DeviceInfo?.getSystemVersion() > 14 ? StatusBar.currentHeight : 0 : StatusBar.currentHeight}}>
316
313
  <StatusBar backgroundColor={ThemeColor} />
317
314
 
318
315
  <View style={{ width: "100%", height: "100%", backgroundColor: "#e4fdfd" }}>
@@ -572,7 +569,7 @@ const FirstScreen = ({ img, themeColor, SDKScreenTitle }) => {
572
569
 
573
570
  {isLoading && <ActivityIndicator size={'large'} color={themeColor} collapsable={true} style={{ position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, elevation: 2 }} />}
574
571
 
575
- </SafeAreaView >
572
+ </View>
576
573
  )
577
574
  }
578
575
 
@@ -20,7 +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
+ import { SafeAreaView } from 'react-native-safe-area-context';
24
24
 
25
25
  console.ignoredYellowBox = ["Warning: Each", "Warning: Failed"];
26
26
 
@@ -52,7 +52,7 @@ global.isScreeenShotTaken = false;
52
52
  global.restrictedViews = [];
53
53
  global.currentScreen = ""
54
54
  global.isShakebugSDKOpen = false;
55
- global.sdk_version = "2.2.4";
55
+ global.sdk_version = "2.2.6";
56
56
  global.app_lunch_count = 0;
57
57
  global.POPUP_LAUNCH_THRESHOLD = 3;
58
58
  global.POPUP_COOLDOWN_DAYS = 2;
@@ -451,7 +451,6 @@ function Shakebug({ children, Android_appkey, iOS_appkey, showTutorialScreenFirs
451
451
  };
452
452
 
453
453
  return (
454
- <SafeAreaProvider>
455
454
  <View
456
455
  style={{
457
456
  width: '100%',
@@ -476,7 +475,6 @@ function Shakebug({ children, Android_appkey, iOS_appkey, showTutorialScreenFirs
476
475
 
477
476
  <ReviewModal color={ThemeColor} visible={showModal} onClose={() => { setShowModal(false) }} />
478
477
  </View>
479
- </SafeAreaProvider>
480
478
  )
481
479
  }
482
480