Page MenuHomePhabricator

D5892.id19455.diff
No OneTemporary

D5892.id19455.diff

diff --git a/native/push/in-app-notif.react.js b/native/push/in-app-notif.react.js
--- a/native/push/in-app-notif.react.js
+++ b/native/push/in-app-notif.react.js
@@ -19,19 +19,18 @@
let title = null;
if (props.title) {
- const titleStyles = [
- styles.title,
- useLightStyle ? styles.lightTitle : null,
- ];
title = (
<>
- <SingleLine style={titleStyles}>{props.title}</SingleLine>
+ <SingleLine style={styles.title}>{props.title}</SingleLine>
{'\n'}
</>
);
}
- const textStyles = [styles.text, useLightStyle ? styles.lightText : null];
+ const textStyles = [
+ styles.text,
+ useLightStyle ? styles.lightText : styles.darkText,
+ ];
const notificationContent = (
<Text style={textStyles}>
{title}
@@ -51,10 +50,10 @@
}
const styles = StyleSheet.create({
- lightText: {
- color: 'white',
+ darkText: {
+ color: 'black',
},
- lightTitle: {
+ lightText: {
color: 'white',
},
notif: {
@@ -79,7 +78,6 @@
marginHorizontal: 10,
},
title: {
- color: 'black',
fontWeight: 'bold',
},
});

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 6:27 PM (19 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694804
Default Alt Text
D5892.id19455.diff (1 KB)

Event Timeline