react-native-braintree-dropin-ui
react-native-braintree-dropin-ui copied to clipboard
React Native Drop in fix after React Native v0.69 (issue podfile moved to root)
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch [email protected]
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-braintree-dropin-ui/ios/RNBraintreeDropIn.podspec b/node_modules/react-native-braintree-dropin-ui/ios/RNBraintreeDropIn.podspec
index 8835268..1faf8f4 100644
--- a/node_modules/react-native-braintree-dropin-ui/ios/RNBraintreeDropIn.podspec
+++ b/node_modules/react-native-braintree-dropin-ui/ios/RNBraintreeDropIn.podspec
@@ -1,17 +1,17 @@
Pod::Spec.new do |s|
s.name = "RNBraintreeDropIn"
- s.version = "1.0.0"
+ s.version = "1.1.3"
s.summary = "RNBraintreeDropIn"
s.description = <<-DESC
RNBraintreeDropIn
DESC
s.homepage = "https://github.com/bamlab/react-native-braintree-payments-drop-in"
s.license = "MIT"
- # s.license = { :type => "MIT", :file => "../LICENSE" }
+ s.license = { :type => "MIT", :file => "./LICENSE" }
s.author = { "author" => "[email protected]" }
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/BradyShober/react-native-braintree-dropin-ui.git", :tag => "master" }
- s.source_files = "*.{h,m}"
+ s.source_files = "ios/**/*.{h,m}"
s.requires_arc = true
s.dependency 'React'
s.dependency 'Braintree'
diff --git a/node_modules/react-native-braintree-dropin-ui/react-native.config.js b/node_modules/react-native-braintree-dropin-ui/react-native.config.js
index f162c2b..6550b2f 100644
--- a/node_modules/react-native-braintree-dropin-ui/react-native.config.js
+++ b/node_modules/react-native-braintree-dropin-ui/react-native.config.js
@@ -3,7 +3,7 @@ const path = require('path');
module.exports = {
dependency: {
platforms: {
- ios: { podspecPath: path.join(__dirname, 'ios', 'RNBraintreeDropIn.podspec') },
+ ios: {},
android: {
packageImportPath: 'import tech.power.RNBraintreeDropIn.RNBraintreeDropInPackage;',
packageInstance: 'new RNBraintreeDropInPackage()',
This issue body was partially generated by patch-package.
Did you have issues with autolinking as well? I've found that after updating to react-native 0.70.5, All Braintree-ish pods have disappeared from my Podfile.lock.
You need to move the node_modules/react-native-braintree-dropin-ui/ios/RNBraintreeDropIn.podspec from ios to root and do a pod install