Skip to content
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

feat: replace old variable references #3062

Merged
merged 5 commits into from
Feb 1, 2022

Conversation

Drakeoon
Copy link
Contributor

Summary

These changes fix other parts of application when theme V3 would be used instead of V2. Changes:

  • each ReactNativePaper.Theme got replaced with exported Theme type
  • each way of accessing theme colors, like colors.background, were replaced with optional chaining or dirty defaults (to be resolved later on, during the works on individual components)

@Drakeoon Drakeoon requested a review from lukewalczak January 31, 2022 15:56
@Drakeoon Drakeoon changed the base branch from main to next January 31, 2022 15:56
@callstack-bot
Copy link

callstack-bot commented Jan 31, 2022

Hey @Drakeoon, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@Drakeoon Drakeoon force-pushed the feat/replace-old-variable-references branch from 0ee879d to d3d2bb5 Compare January 31, 2022 16:23
@lukewalczak lukewalczak self-assigned this Jan 31, 2022
@github-actions
Copy link

The mobile version of example app from this branch is ready! You can see it here

.

@@ -117,10 +115,10 @@ const AnimatedFABExample = () => {
keyExtractor={_keyExtractor}
onEndReachedThreshold={0}
scrollEventThrottle={16}
style={[styles.flex, { backgroundColor: background }]}
style={[styles.flex, { backgroundColor: colors?.background || '#000' }]}
Copy link
Member

Choose a reason for hiding this comment

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

As we discussed internally, fallback colors are temporary to not block the PR. All the cases will be refactored in the way: isV3 ? appropriate color from V3 : appropriate color from V2

@lukewalczak lukewalczak merged commit a63dc46 into next Feb 1, 2022
@lukewalczak lukewalczak deleted the feat/replace-old-variable-references branch February 1, 2022 12:24
@github-actions
Copy link

github-actions bot commented Feb 1, 2022

The mobile version of example app from this branch is ready! You can see it here

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants