-
Notifications
You must be signed in to change notification settings - Fork 258
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
Refactor SceneWrapper, header, and footer #4721
Commits on Jan 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 84ed435 - Browse repository at this point
Copy the full SHA 84ed435View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae432d6 - Browse repository at this point
Copy the full SHA ae432d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4444fea - Browse repository at this point
Copy the full SHA 4444feaView commit details -
Fix SceneWrapper
insets.bottom
to include footerHeightThe `insetStyles` should simply be a convenient set of padding styles derived from the `insets` without modification to the values.
Configuration menu - View commit details
-
Copy full SHA for 755acf6 - Browse repository at this point
Copy the full SHA 755acf6View commit details -
Refactor SceneWrapper insets for readability
Instead of long summations of terms with separate conditions inline, we factor out each term and its respective condition to make the logic easy to reason about and maintain.
Configuration menu - View commit details
-
Copy full SHA for 5cf1488 - Browse repository at this point
Copy the full SHA 5cf1488View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f85511 - Browse repository at this point
Copy the full SHA 6f85511View commit details -
De-pluralize
insetStyles
and other style prop values in SceneWrapperA style is a set of rules. It was a mistake to name this property in the plural form.
Configuration menu - View commit details
-
Copy full SHA for 1af3eb2 - Browse repository at this point
Copy the full SHA 1af3eb2View commit details -
Remove unnecessary
hasKeyboardAnimation
booleanWe can use `avoidKeyboard` prop directly to know if we are in this mode in the `SceneWrapper`.
Configuration menu - View commit details
-
Copy full SHA for f153cb5 - Browse repository at this point
Copy the full SHA f153cb5View commit details -
Add ability to reset SceneScrollState
Some scenes don't register the scroll handler and therefore don't have local scroll state to stomp on the global scroll state. In this case, they'll be left with another scene's scroll state. To fix this, we set the scroll state back to its default scroll state when the scene is no longer in focus. We also fix a bug where local state never stomps on scrollXDelta and scrollYDelta.
Configuration menu - View commit details
-
Copy full SHA for 3cedab7 - Browse repository at this point
Copy the full SHA 3cedab7View commit details -
Convert SceneWrapper to always apply inset padding
This change makes for a more straight forward API where the scene component may always expect padding and scene wrapper size to be applied consistently. The scene is responsible for applying negative margins using `undoInsetStyle` if it wishes to overlap under UI components (header/tabs/etc).
Configuration menu - View commit details
-
Copy full SHA for 9de42b1 - Browse repository at this point
Copy the full SHA 9de42b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4698113 - Browse repository at this point
Copy the full SHA 4698113View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d0d474 - Browse repository at this point
Copy the full SHA 2d0d474View commit details -
Add transparent black background to BlurHeader on Android
We add a black transparent background on Android to BlurBackground for presentation consistency across platforms.
Configuration menu - View commit details
-
Copy full SHA for 77b8d6e - Browse repository at this point
Copy the full SHA 77b8d6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55b3bfc - Browse repository at this point
Copy the full SHA 55b3bfcView commit details -
Fix SceneFooter bottom positioning issue concerning insets
Before we were adding a minimum padding to the bottom of the MenuTabs. This clearly caused bugs. The new approach is to just use the bottom inset for the bottom padding in the MenuBar so that way the SceneFooter can include it in position calculations.
Configuration menu - View commit details
-
Copy full SHA for 48a9f43 - Browse repository at this point
Copy the full SHA 48a9f43View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed32b8a - Browse repository at this point
Copy the full SHA ed32b8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d0b8a8 - Browse repository at this point
Copy the full SHA 9d0b8a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06dde9c - Browse repository at this point
Copy the full SHA 06dde9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f1727f - Browse repository at this point
Copy the full SHA 7f1727fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1908f9 - Browse repository at this point
Copy the full SHA c1908f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e0f5be - Browse repository at this point
Copy the full SHA 8e0f5beView commit details -
Make BlurBackground's background tint consistent across platforms
We remove the overlayColor property from BlurBackground which is Android-only. Instead, we add a backgroundColor to the blur view to match the light/dark modes in iOS.
Configuration menu - View commit details
-
Copy full SHA for ecbd4b0 - Browse repository at this point
Copy the full SHA ecbd4b0View commit details