Skip to content

Commit e007585

Browse files
committed
feat: increase limit char and shareable log text
1 parent 39668df commit e007585

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/core/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const getHttpInterceptorId = () => {
9292
//#region formatters
9393
export const showNewLine = (when: boolean) => (when ? '\n' : '');
9494

95-
const limitChar = (value: any, limit = 5000) => {
95+
const limitChar = (value: any, limit = 100000) => {
9696
const stringValue = typeof value === 'string' ? value : JSON.stringify(value ?? '');
9797

9898
return stringValue.length > limit

src/ui/components/details/LogMessageDetails.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { useContext, type Ref } from 'react';
2-
import { ScrollView, StyleSheet, Text, type StyleProp, type ViewStyle } from 'react-native';
2+
import { ScrollView, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
33
import { MainContext } from '../../../contexts';
44
import { formatLogMessage, getConsoleTypeColor } from '../../../core/utils';
55
import colors from '../../../theme/colors';
66
import type { LogMessage } from '../../../types';
7+
import ShareableText from '../common/ShareableText';
78

89
interface LogMessageDetailsProps {
910
style?: StyleProp<ViewStyle>;
@@ -23,7 +24,7 @@ export default function LogMessageDetails({ style, ref }: LogMessageDetailsProps
2324
style={[styles.container, { backgroundColor: getConsoleTypeColor(item?.type ?? '') }, style]}
2425
contentContainerStyle={styles.contentContainer}
2526
>
26-
<Text style={styles.text}>{formatLogMessage(item?.values ?? [])}</Text>
27+
<ShareableText style={styles.text}>{formatLogMessage(item?.values ?? [])}</ShareableText>
2728
</ScrollView>
2829
);
2930
}

0 commit comments

Comments
 (0)