-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Polish new app screen component styling #24783
Conversation
contentInsetAdjustmentBehavior will allow UIKit to adjust the contents of the ScrollView without needing to manually account for safe area insets ourselves.
We were overapplying this style in one place, and not applying on Android in another
This removes many extraneous and complex styles to simplify this component
This better matches the style given in the designs by @orta.
This is truer to the original design
width: 540, | ||
overflow: 'visible', | ||
resizeMode: 'cover', | ||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a rough time trying to make the full React logo be nice and offset like in the designs.
Another thought I had here is to use a 9-patch-like rectangular image for the background, where the React logo is already cropped, and then fix it to the bottom left corner of this component, to ensure a consistent background image across platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed each individual commit and really appreciate how clear the individual steps are that you took and how easy it made it to validate your code. Your test plan is also awesome. This is pretty much the perfect Pull Request. Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
accessibilityRole={'image'} | ||
source={require('./logo.png')} | ||
style={styles.background} | ||
imageStyle={styles.logo}> | ||
<Text style={styles.text}>Welcome to React Native</Text> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm landing it as is but here is a thought: what if this said "Welcome to React" instead? Do you dare to make that change in a PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request was successfully merged by @eliperkins in 233fddb. When will my fix make it into a release? | Upcoming Releases |
Summary: We're all friends here, right? 💗 Related to conversation in #24783: #24783 (comment) We're just [making React run on phones](https://www.youtube.com/watch?v=xKu4kmVivFs&start=17&end=21), right? [General] [Changed] - Updated new app greeting screen title 💗 Pull Request resolved: #24785 Differential Revision: D15286468 Pulled By: cpojer fbshipit-source-id: eb73d1c870331f03766b237e9ccb3fa952463be0
Summary: 1. Consistency with full stops (you can see screenshots in #24783 ) 2. Improvements to the wording, describing what you're going to see ## Changelog [Internal] [Fixed] - Improves the copy for the new app screen Pull Request resolved: #24918 Differential Revision: D15391421 Pulled By: cpojer fbshipit-source-id: 2ec6d2d5bd4845c5f4c699838ae865ab4217e49e
Summary: 1. Consistency with full stops (you can see screenshots in facebook#24783 ) 2. Improvements to the wording, describing what you're going to see ## Changelog [Internal] [Fixed] - Improves the copy for the new app screen Pull Request resolved: facebook#24918 Differential Revision: D15391421 Pulled By: cpojer fbshipit-source-id: 2ec6d2d5bd4845c5f4c699838ae865ab4217e49e
Summary
Related to #24760 and #24737
This simplifies some styling within the components used for the New App Screen to help advocate for best practices when styling with CSS-like styles in React Native, as well as using React Native's own unique components.
There's a bit more detail in each commit. Let me know if you'd like me to pull that info out into the PR description here!
Changelog
[General] [Changed] - Polished up new app screen component styling
Test Plan