-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[No QA] Console error cleanup pt3 #55066
Merged
lakchote
merged 48 commits into
Expensify:main
from
callstack-internal:console-error-cleanup-pt3
Feb 18, 2025
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
4afa549
fix console errors on moneyrequestconfirmation page and submit expense
kubabutkiewicz a4eb650
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 1af473b
continue fixing console errors
kubabutkiewicz 463cdac
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz dcc41ce
fix console error related to workletization
kubabutkiewicz 80bc6a0
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz e1d00a0
fix console error regarding gesture handler
kubabutkiewicz 867277a
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 20f2455
fix nested buttons console error in avatarwithdisplayname
kubabutkiewicz de99950
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 5f69616
fix console errors regarding nested buttons, not using forwardRef and…
kubabutkiewicz 614f72f
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 901b8fc
fix lint problems
kubabutkiewicz 8e7edb9
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz b146b4c
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 88c99f4
fix: error about nested buttons in html
kubabutkiewicz 8cb2190
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 8bd65b0
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 7b7d70b
fix nested button in html on search page
kubabutkiewicz d5e336b
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 91b8885
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 61a5a23
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 522c25f
fix: resolved comments
kubabutkiewicz 0511174
fix: tests
kubabutkiewicz c44be38
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 13137cb
fix: resolve comments
kubabutkiewicz 75ad3d2
fix missing key in map
kubabutkiewicz 8b958f2
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 033f142
fix lint
kubabutkiewicz 5b4bf77
fix nested buttons on Workspace settings
kubabutkiewicz 639af68
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 44c8505
fix nested buttons errors
kubabutkiewicz 6b09c1b
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 42ede38
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz f763a81
fix missing key prop
kubabutkiewicz dcf5f16
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 0654558
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz a298ed4
fix nested buttons warning
kubabutkiewicz abd80c3
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz fed8e47
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 0ad061d
fix error ref.measureLayout need to be called with native component
kubabutkiewicz 684523b
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 4e2e693
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 8532314
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 85c80bf
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz 7289ce9
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz c6577f1
Merge branch 'main' of github.com:callstack-internal/Expensify-App in…
kubabutkiewicz dbe79e7
fix typos
kubabutkiewicz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
patches/react-native-draggable-flatlist+4.0.1+002+fix-console-error-ref-measureLayout.patch
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/node_modules/react-native-draggable-flatlist/src/components/NestableDraggableFlatList.tsx b/node_modules/react-native-draggable-flatlist/src/components/NestableDraggableFlatList.tsx | ||
index 1559352..b84ee99 100644 | ||
--- a/node_modules/react-native-draggable-flatlist/src/components/NestableDraggableFlatList.tsx | ||
+++ b/node_modules/react-native-draggable-flatlist/src/components/NestableDraggableFlatList.tsx | ||
@@ -56,6 +56,11 @@ function NestableDraggableFlatListInner<T>( | ||
const onFail = () => { | ||
console.log("## nested draggable list measure fail"); | ||
}; | ||
+ | ||
+ if (typeof nodeHandle === "number" ) { | ||
+ return; | ||
+ } | ||
+ | ||
//@ts-ignore | ||
containerRef.current.measureLayout(nodeHandle, onSuccess, onFail); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import CONST from '@src/CONST'; | ||
import type {GetButtonRole, GetButtonStyle} from './types'; | ||
|
||
const getButtonStyle: GetButtonStyle = () => undefined; | ||
const getButtonRole: GetButtonRole = () => CONST.ROLE.BUTTON; | ||
export {getButtonStyle, getButtonRole}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import CONST from '@src/CONST'; | ||
import type {GetButtonRole, GetButtonStyle} from './types'; | ||
|
||
const getButtonStyle: GetButtonStyle = (styles, isNested) => (isNested ? styles.cursorPointer : undefined); | ||
const getButtonRole: GetButtonRole = (isNested) => (isNested ? CONST.ROLE.PRESENTATION : CONST.ROLE.BUTTON); | ||
|
||
export {getButtonStyle, getButtonRole}; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type {Role, StyleProp, ViewStyle} from 'react-native'; | ||
|
||
type GetButtonStyle = (styles: {cursorPointer: ViewStyle}, isNested: boolean) => StyleProp<ViewStyle> | undefined; | ||
|
||
type GetButtonRole = (isNested: boolean) => Role | undefined; | ||
|
||
export type {GetButtonStyle, GetButtonRole}; |
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Can you explain about this change?
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 is basically taken from react-native codebase https://github.com/facebook/react-native/blob/fffd6d75b48ae1f6c78dbc0f7e9b6fe509df3394/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js#L91-L99 no not call this method without proper type.