Skip to content

Commit 2837fdf

Browse files
authored
HintsScreen - allow configuration (#2590)
1 parent e16e559 commit 2837fdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/src/screens/componentScreens/HintsScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const reactions = ['❤️', '😮', '😔', '😂', '😡'];
1010
type HintScreenProps = {};
1111

1212
export default class HintsScreen extends Component<HintScreenProps> {
13-
1413
state = {
1514
showHint: true,
1615
useShortMessage: false,
@@ -134,6 +133,7 @@ export default class HintsScreen extends Component<HintScreenProps> {
134133
const message = useShortMessage
135134
? 'Add other cool and useful stuff.'
136135
: 'Add other cool and useful stuff through adding apps to your visitors to enjoy.';
136+
const color = !showCustomContent && showReactionStrip ? {color: Colors.$backgroundDefault} : undefined;
137137

138138
return (
139139
<View flex>
@@ -178,7 +178,7 @@ export default class HintsScreen extends Component<HintScreenProps> {
178178
? this.renderReactionStrip()
179179
: undefined
180180
}
181-
color={!showCustomContent && showReactionStrip ? Colors.$backgroundDefault : undefined}
181+
{...color}
182182
removePaddings={!showCustomContent && showReactionStrip}
183183
enableShadow={enableShadow}
184184
testID={'Hint'}

0 commit comments

Comments
 (0)