shakebug-react-native 2.4.5 → 2.4.7
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/README.md
CHANGED
|
@@ -94,27 +94,7 @@ export default App = () => {
|
|
|
94
94
|
}
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
If you use NavigationContainer in App.js/root file (where you import ShakebugView) then you need to pass independent as parameter in NavigationContainer
|
|
98
97
|
|
|
99
|
-
```javascript
|
|
100
|
-
|
|
101
|
-
Import ShakebugView from 'shakebug-react-native';
|
|
102
|
-
|
|
103
|
-
export default App = () => {
|
|
104
|
-
return(
|
|
105
|
-
<ShakebugView
|
|
106
|
-
Android_appkey= “your android app key”
|
|
107
|
-
iOS_appkey= “your ios app key”
|
|
108
|
-
other options…
|
|
109
|
-
>
|
|
110
|
-
<NavigationContainer independent>
|
|
111
|
-
//Your code...
|
|
112
|
-
</NavigationContainer>
|
|
113
|
-
</ShakebugView>
|
|
114
|
-
)
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
```
|
|
118
98
|
You can add event on click:
|
|
119
99
|
|
|
120
100
|
```javascript
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shakebug-react-native",
|
|
3
3
|
"title": "shakebug-react-native",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.7",
|
|
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
|
+
"types": "src/index.tsx",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
10
|
},
|
|
@@ -23,7 +23,7 @@ export const NavigationProvider = ({ children }) => {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
useFocusEffect(
|
|
27
27
|
React.useCallback(() => {
|
|
28
28
|
if (navigationState && navigationState.length > 0) {
|
|
29
29
|
setFocusedScreen(navigationState[navigationState.length - 1].name);
|
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.4.
|
|
56
|
+
global.sdk_version = "2.4.7";
|
|
57
57
|
global.app_lunch_count = 0;
|
|
58
58
|
global.POPUP_LAUNCH_THRESHOLD = 3;
|
|
59
59
|
global.POPUP_COOLDOWN_DAYS = 2;
|
|
@@ -541,7 +541,8 @@ function Shakebug({ children, Android_appkey, iOS_appkey, showTutorialScreenFirs
|
|
|
541
541
|
}}>
|
|
542
542
|
<View
|
|
543
543
|
style={{
|
|
544
|
-
|
|
544
|
+
width: '100%',
|
|
545
|
+
height: '100%',
|
|
545
546
|
}}
|
|
546
547
|
>
|
|
547
548
|
<GlobalStateProvider>
|