Skip to content

Fix marquee screen now have scroll view #2340

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 3 commits into from
Nov 22, 2022

Conversation

adids1221
Copy link
Contributor

Description

Marquee screen now has a scroll view.

Changelog

Marquee screen now has a scroll view.
The screen does not fit the private demo app.

<View marginV-s2>
{renderBooleanOption.call(this, 'Direction Horizontal: Left To Right/Right To Left', 'directionHorizontal')}
{renderBooleanOption.call(this, 'Direction Vertical: Bottom To Up/Up To Bottom', 'directionVertical')}
<ScrollView>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not replace the wrapping View with a ScrollView?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right I'll just pass the style to the ScrollView

@adids1221 adids1221 requested a review from lidord-wix November 21, 2022 13:41
Copy link
Contributor

@lidord-wix lidord-wix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.
I left a small comment, it's not so important because it's in the screen, but many users copy our examples in their code so it's better to keep the best practices :)

@@ -61,7 +60,7 @@ export default class MarqueeScreen extends Component<{}> {

render() {
return (
<View flex padding-page>
<ScrollView style={{flex: 1, padding: 20}}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is more performant to use react-native's StyleSheet instead of inline style.

@adids1221 adids1221 merged commit 3dc5f58 into master Nov 22, 2022
@adids1221 adids1221 deleted the fix/marquee_screen_scrollView branch December 13, 2022 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants