-
Notifications
You must be signed in to change notification settings - Fork 1
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
Upgrade React Native Paper and Fix Warnings #518
Conversation
@@ -111,7 +111,6 @@ export const SearchRecipientsModal = ({ | |||
mode="contained" | |||
style={styles.doneButton} | |||
labelStyle={styles.doneButtonLabel} | |||
compact={true} |
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.
After the upgrade this was causing the button text to be truncated
26c09da
to
9d8ee9b
Compare
Pull Request Test Coverage Report for Build 7543867449
💛 - Coveralls |
9d8ee9b
to
21f7bca
Compare
width: '90%', | ||
marginHorizontal: '5%', |
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.
Spacing is now handled by the modal. Spacing on the modal was necessary to achieve the same style while also setting a background to avoid the RTCView warning.
@@ -152,7 +149,6 @@ const defaultStyles = createStyles('SearchRecipientsModal', (theme) => { | |||
marginVertical: 16, | |||
marginRight: 16, | |||
height: 35, | |||
width: 55, |
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.
After the upgrade this was causing the text to be truncated.
@@ -32,7 +32,7 @@ export const TraceLine = (props: Props) => { | |||
const yDomain = [domainMin, domainMax] as [number, number]; | |||
|
|||
const trend = useMemo(() => { | |||
if (showTrend) { | |||
if (showTrend && data.length > 1) { |
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.
We should only show the trend if it has 2+ points. A single point produces a flat trend which isn't meaningful and 0 points causes a NaN error because of division by zero.
@@ -35,6 +35,7 @@ export function ScreenSurface({ | |||
const defaultStyles = createStyles('ScreenSurface', (theme) => ({ | |||
surfaceView: { | |||
flex: 1, | |||
height: '100%', |
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.
After the upgrade a react native paper surface must have a height set to flex properly.
@@ -56,7 +56,7 @@ export const BottomNavigationBar = ({ | |||
? options.tabBarLabel | |||
: options.title !== undefined | |||
? options.title | |||
: route.title; | |||
: route.name; |
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.
After the upgrade the title property was removed. We now default to name, however, in practice this should never happen.
@@ -122,8 +122,7 @@ export function MessageScreen<ParamList extends ParamListBase>({ | |||
<View | |||
style={{ | |||
flexDirection: 'row', | |||
flex: 1, | |||
maxWidth: 60, | |||
width: 60, |
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.
After the upgrade the message avatars did not display correctly. Setting a static width solved this problem.
🎉 This PR is included in version 11.11.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Changes
RCTView has a shadow set but cannot calculate shadow efficiently
hidden
style from PillarsTile as it also triggered aRCTView has a shadow set but cannot calculate shadow efficiently
warningRCTView has a shadow set but cannot calculate shadow efficiently
warningRCTView has a shadow set but cannot calculate shadow efficiently
warningAdvancedTrackerEditor
to be serializable to avoid aNon-serializable values were found in the navigation state.
warningAdvancedTrackerEditor
save button to avoid aReact has detected a change in the order of Hooks
error when setting the right header optionScreenshots
Here is a video of everything work correctly:
react-native-paperupgrdae-demo.mov