Skip to content

Instantly share code, notes, and snippets.

@mitsuharu
Last active August 3, 2022 01:04
Show Gist options
  • Save mitsuharu/2167565246e2808bb9c240cfaf6d0bf4 to your computer and use it in GitHub Desktop.
Save mitsuharu/2167565246e2808bb9c240cfaf6d0bf4 to your computer and use it in GitHub Desktop.
patch file for react-native-sqlite-storage 6.0.1 with patch-package
diff --git a/node_modules/react-native-sqlite-storage/react-native.config.js b/node_modules/react-native-sqlite-storage/react-native.config.js
index dc150a9..7dcf0ef 100644
--- a/node_modules/react-native-sqlite-storage/react-native.config.js
+++ b/node_modules/react-native-sqlite-storage/react-native.config.js
@@ -1,9 +1,7 @@
module.exports = {
dependency: {
platforms: {
- ios: {
- project: './platforms/ios/SQLite.xcodeproj'
- },
+ ios: {},
android: {
sourceDir: './platforms/android'
},
@mitsuharu
Copy link
Author

mitsuharu commented Aug 2, 2022

  1. set up patch-package to your project
  2. open node_modules/react-native-sqlite-storage/react-native.config.js
  3. edit as follows
-			ios: {
-				project: './platforms/ios/SQLite.xcodeproj'
-			},
+			ios: {},
  1. run npx patch-package react-native-sqlite-storage at terminal
  2. patch-package makes react-native-sqlite-storage+6.0.1.patch and adds it to {$root}/patches
  3. build your project! 👍

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