react-native-in-app-debugger 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/index.jsx +9 -6
  2. package/package.json +1 -1
package/index.jsx CHANGED
@@ -31,6 +31,13 @@ const dimension = Dimensions.get("window");
31
31
 
32
32
  const v = DeviceInfo?.getReadableVersion() || "";
33
33
 
34
+ let modelOs;
35
+ if (DeviceInfo) {
36
+ let model = DeviceInfo.getDeviceId();
37
+ if (model === "unknown") model = DeviceInfo.getModel();
38
+ modelOs = model + " - " + DeviceInfo.getSystemVersion();
39
+ }
40
+
34
41
  const Label = (props) => (
35
42
  <Text
36
43
  {...props}
@@ -97,12 +104,8 @@ export default ({ variables, env, version = v, maxNumOfApiToStore = 0 }) => {
97
104
  {(!!env || !!version) && (
98
105
  <Label>{(env || "") + (env ? " " : "") + version}</Label>
99
106
  )}
100
- {!!DeviceInfo && (
101
- <Label>
102
- {DeviceInfo.getDeviceId() + " " + DeviceInfo.getSystemVersion()}
103
- </Label>
104
- )}
105
- <Label>{dimension.width + "x" + dimension.height}</Label>
107
+ {!!modelOs && <Label>{modelOs}</Label>}
108
+ <Label>{dimension.width + " x " + dimension.height}</Label>
106
109
  {variables?.GIT_BRANCH && <Label>{variables.GIT_BRANCH}</Label>}
107
110
  {variables?.BUILD_DATE_TIME && (
108
111
  <Label>{variables.BUILD_DATE_TIME}</Label>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "index.jsx",
6
6
  "scripts": {