Jobeso / react-native-whatsapp-stickers

Integrate sticker packs for WhatsApp with your react-native app
Other
81 stars 30 forks source link

Build error with latest react-native #78

Open redpandatronicsuk opened 2 years ago

redpandatronicsuk commented 2 years ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-whatsapp-stickers@2.0.2 for the project I'm working on.

This patch fixes build issues with newer react-native versions.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-whatsapp-stickers/ios/RNWhatsAppStickers.podspec b/node_modules/react-native-whatsapp-stickers/ios/RNWhatsAppStickers.podspec
index 9093c72..02c1513 100644
--- a/node_modules/react-native-whatsapp-stickers/ios/RNWhatsAppStickers.podspec
+++ b/node_modules/react-native-whatsapp-stickers/ios/RNWhatsAppStickers.podspec
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
   s.requires_arc = true

-  s.dependency "React"
+  s.dependency "React-Core"
   #s.dependency "others"

 end
diff --git a/node_modules/react-native-whatsapp-stickers/react-native-whatsapp-stickers.podspec b/node_modules/react-native-whatsapp-stickers/react-native-whatsapp-stickers.podspec
index 44d64c9..bbefae4 100644
--- a/node_modules/react-native-whatsapp-stickers/react-native-whatsapp-stickers.podspec
+++ b/node_modules/react-native-whatsapp-stickers/react-native-whatsapp-stickers.podspec
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
   s.source_files = "ios/**/*.{h,m,swift}"
   s.requires_arc = true

-  s.dependency "React"
+  s.dependency "React-Core"

   s.ios.vendored_frameworks = "**/WebP.framework"

This issue body was partially generated by patch-package.