Skip to content

HintsScreen - allow configuration #2590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions demo/src/screens/componentScreens/HintsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const reactions = ['❤️', '😮', '😔', '😂', '😡'];
type HintScreenProps = {};

export default class HintsScreen extends Component<HintScreenProps> {

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

return (
<View flex>
Expand Down Expand Up @@ -178,7 +178,7 @@ export default class HintsScreen extends Component<HintScreenProps> {
? this.renderReactionStrip()
: undefined
}
color={!showCustomContent && showReactionStrip ? Colors.$backgroundDefault : undefined}
{...color}
removePaddings={!showCustomContent && showReactionStrip}
enableShadow={enableShadow}
testID={'Hint'}
Expand Down