-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RNMobile] Upgrade react-native-modal and other warning fixes (#32772)
* Upgrade to latest react-native-modal To fix "Animated.event now requires a second argument for options" caused by using a fairly old version of the lib. * Additional `npm install` managed to bump more instances * Revert "Additional `npm install` managed to bump more instances" This reverts commit 1e05044. * Manually bump the react-native-modal entry in package-lock.json * onSwipe is deprecated, use onSwipeComplete As per https://github.com/react-native-modal/react-native-modal/blob/b580105f4b2b4e1163bed1228f241b16ea17dacb/src/modal.tsx#L268-L272 * fetch() is deprecated for isScreenReaderEnabled See https://github.com/facebook/react-native/blob/v0.64.0/Libraries/Components/AccessibilityInfo/AccessibilityInfo.android.js#L94-L99 * Toolbar needs label set As per the doc https://github.com/WordPress/gutenberg/blob/7fc4197a6494c040fc3d4e491f22602e058fb126/packages/components/src/toolbar/index.js#L30-L35 * componentWillUnmount is deprecated, use componentDidMount Which is also the recommended way to add subscriptions. See https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#adding-event-listeners-or-subscriptions * Podfile.lock updated after `npm run core ios` * Revert "Toolbar needs label set" This reverts commit d6cf2f8. * Use ToolbarGroup in native mobile instead of label-less Toolbar Label-less Toolbar is deprecated https://github.com/WordPress/gutenberg/blob/7fc4197a6494c040fc3d4e491f22602e058fb126/packages/components/src/toolbar/index.js#L30-L35 Tried to add labels with d6cf2f8 but introduced issues: the keyboard dismiss button was out of place. * Revert "Podfile.lock updated after `npm run core ios`" This reverts commit ce1baea. * Temporary Metro patch until RN upgrades Metro Issue message: "Error: EISDIR: illegal operation on a directory, read" Fix PR on Metro: facebook/metro#567 * Animated.event needs is second param always set
- Loading branch information
Showing
10 changed files
with
36 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,13 @@ | ||
diff --git a/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js b/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js | ||
index 5f32fc5..2b80fda 100644 | ||
--- a/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js | ||
+++ b/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js | ||
@@ -346,7 +346,7 @@ class UnableToResolveError extends Error { | ||
try { | ||
file = fs.readFileSync(this.originModulePath, "utf8"); | ||
} catch (error) { | ||
- if (error.code === "ENOENT") { | ||
+ if (error.code === "ENOENT" || error.code === 'EISDIR') { | ||
// We're probably dealing with a virtualised file system where | ||
// `this.originModulePath` doesn't actually exist on disk. | ||
// We can't show a code frame, but there's no need to let this I/O |