-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31723 from lukemorawski/31677-theme_switching_nav…
…igation_signin_wholeapp [Theme Switching Migration] Navigation + SignIn + WholeApp Batch
- Loading branch information
Showing
14 changed files
with
91 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
import {CardStyleInterpolators} from '@react-navigation/stack'; | ||
import styles from '@styles/styles'; | ||
|
||
const RHPScreenOptions = { | ||
/** | ||
* RHP stack navigator screen options generator function | ||
* @function | ||
* @param {Object} styles - The styles object | ||
* @returns {Object} - The screen options object | ||
*/ | ||
const RHPScreenOptions = (styles) => ({ | ||
headerShown: false, | ||
animationEnabled: true, | ||
gestureDirection: 'horizontal', | ||
cardStyle: styles.navigationScreenCardStyle, | ||
cardStyleInterpolator: CardStyleInterpolators.forHorizontalIOS, | ||
}; | ||
}); | ||
|
||
export default RHPScreenOptions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import styles from '@styles/styles'; | ||
|
||
// On web, we can use flex to fit the content to fit the viewport within a ScrollView. | ||
const scrollViewContentContainerStyles = styles.flex1; | ||
const scrollViewContentContainerStyles = (styles) => styles.flex1; | ||
|
||
export default scrollViewContentContainerStyles; |
4 changes: 1 addition & 3 deletions
4
src/pages/signin/SignInPageLayout/signInPageStyles/index.native.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import styles from '@styles/styles'; | ||
|
||
// Using flexGrow on mobile allows the ScrollView container to grow to fit the content. | ||
// This is necessary because making the sign-in content fit exactly the viewheight causes the scroll to stop working on mobile. | ||
const scrollViewContentContainerStyles = styles.flexGrow1; | ||
const scrollViewContentContainerStyles = (styles) => styles.flexGrow1; | ||
|
||
export default scrollViewContentContainerStyles; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters