Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3517885
D5892.id19455.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D5892.id19455.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5892: [native] Fix in-app notif on Android which system theme is dark
Attached
Detach File
Event Timeline
Log In to Comment