Skip to content

Commit ec98722

Browse files
authored
Merge pull request #17 from purrseus/develop
Develop
2 parents 71a1a07 + b1aea2b commit ec98722

File tree

11 files changed

+32
-99
lines changed

11 files changed

+32
-99
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ yarn add react-native-safe-area-context react-native-screens
4343

4444
`react-native-screens` package requires one additional configuration step to properly work on Android devices. Edit `MainActivity.kt` file which is located under `android/app/src/main/java/<your package name>/`.
4545

46-
Add the highlighted code to the body of `MainActivity` class:
47-
4846
```diff
4947
+ import android.os.Bundle
5048
// ...
@@ -105,7 +103,7 @@ Xenon.hide();
105103
```
106104

107105
> [!WARNING]
108-
> `<Xenon.Component />` is enabled by default in all environments, **including production**. This could expose sensitive debugging tools to end users, creating potential security risks.
106+
> `<Xenon.Component />` is enabled by default in all environments, **including production**. This could expose sensitive tools to end users, creating potential security risks.
109107
> To avoid this, make sure to conditionally render the component only in non-production environments. For example:
110108
>
111109
> ```tsx

src/assets/icons/delete.png

486 Bytes
Loading

src/theme/colors.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const colors = Object.freeze({
2-
black: '#000000',
3-
red: '#ef4444',
4-
green: '#22c55e',
5-
gray: '#888888',
6-
lightGray: '#AAAAAA',
2+
black: '#0a0a0a',
3+
red: '#ff6467',
4+
green: '#05df72',
5+
gray: '#a1a1a1',
6+
lightGray: '#e5e5e5',
77
});
88

99
export default colors;

src/ui/Xenon.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ namespace Xenon {
3232
container: {
3333
flex: 1,
3434
...StyleSheet.absoluteFillObject,
35+
pointerEvents: 'box-none',
3536
top: undefined,
3637
bottom: undefined,
37-
zIndex: 9999,
38+
...(Platform.OS === 'android' ? { zIndex: 9999 } : {}),
3839
backgroundColor: colors.lightGray,
40+
borderBottomColor: colors.gray,
41+
borderBottomWidth: StyleSheet.hairlineWidth,
3942
},
4043
safeArea: {
4144
flex: 1,

src/ui/components/details/LogMessageDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const styles = StyleSheet.create({
2121
paddingHorizontal: 8,
2222
},
2323
divider: {
24-
height: 1,
24+
height: StyleSheet.hairlineWidth,
2525
backgroundColor: colors.gray,
2626
},
2727
});

src/ui/components/details/NetworkRequestDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const styles = StyleSheet.create({
157157
paddingHorizontal: 8,
158158
},
159159
divider: {
160-
height: 1,
160+
height: StyleSheet.hairlineWidth,
161161
backgroundColor: colors.gray,
162162
},
163163
text: {

src/ui/components/headers/DebuggerHeader.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,17 @@ export default function DebuggerHeader() {
240240
const styles = StyleSheet.create({
241241
container: {
242242
flexGrow: 0,
243+
borderTopColor: colors.gray,
244+
borderTopWidth: StyleSheet.hairlineWidth,
245+
borderBottomColor: colors.gray,
246+
borderBottomWidth: StyleSheet.hairlineWidth,
243247
},
244248
contentContainer: {
245249
padding: 8,
246250
columnGap: 8,
247251
},
248252
divider: {
249-
width: 1,
253+
width: StyleSheet.hairlineWidth,
250254
backgroundColor: colors.gray,
251255
},
252256
});

src/ui/components/headers/NetworkPanelHeader.tsx

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/ui/components/items/DebuggerHeaderItem.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ const styles = StyleSheet.create({
6161
},
6262
title: {
6363
fontSize: 14,
64-
lineHeight: 17,
65-
fontWeight: '500',
64+
lineHeight: 18,
65+
fontWeight: '600',
6666
color: colors.black,
6767
},
6868
icon: {
69-
width: 17,
70-
height: 17,
69+
width: 18,
70+
height: 18,
71+
tintColor: colors.black,
7172
},
7273
});

src/ui/components/panels/ConsolePanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const styles = StyleSheet.create({
5151
paddingHorizontal: 8,
5252
},
5353
divider: {
54-
height: 1,
54+
height: StyleSheet.hairlineWidth,
5555
backgroundColor: colors.gray,
5656
},
5757
});

0 commit comments

Comments
 (0)