Skip to content

Commit 54b566c

Browse files
committed
fix(rn-tester): alert prompts example result not visible in dark mode
1 parent e7a3f47 commit 54b566c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/rn-tester/js/examples/Alert/AlertExample.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import type {RNTesterModule} from '../../types/RNTesterTypes';
1212

1313
import RNTesterText from '../../components/RNTesterText';
14-
import {RNTesterThemeContext} from '../../components/RNTesterTheme';
1514
import * as React from 'react';
1615
import {Alert, Pressable, StyleSheet, Text, View} from 'react-native';
1716

@@ -243,16 +242,13 @@ const PromptOptions = () => {
243242
style: 'cancel',
244243
},
245244
];
246-
const theme = React.useContext(RNTesterThemeContext);
247245

248246
return (
249247
<View>
250-
<Text style={styles.promptValue}>
251-
<Text style={[{color: theme.SecondaryLabelColor}, styles.bold]}>
252-
Prompt value:
253-
</Text>
248+
<RNTesterText style={styles.promptValue}>
249+
<Text style={styles.bold}>Prompt value:</Text>
254250
{JSON.stringify(promptValue, null, 2)}
255-
</Text>
251+
</RNTesterText>
256252

257253
<Pressable
258254
style={styles.wrapper}

0 commit comments

Comments
 (0)