Skip to content
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

Add support for modern React Native auto-linking #10

Open
eddieSullivan opened this issue Jul 14, 2023 · 0 comments
Open

Add support for modern React Native auto-linking #10

eddieSullivan opened this issue Jul 14, 2023 · 0 comments

Comments

@eddieSullivan
Copy link

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-locale-detector/RNI18n.podspec b/node_modules/react-native-locale-detector/RNI18n.podspec
new file mode 100644
index 0000000..0adad6f
--- /dev/null
+++ b/node_modules/react-native-locale-detector/RNI18n.podspec
@@ -0,0 +1,25 @@
+require 'json'
+packagejson = JSON.parse(File.read('package.json'))
+version = packagejson["version"]
+summary = packagejson["description"]
+license = packagejson["license"]
+
+Pod::Spec.new do |s|
+
+  s.name            = "RNI18n"
+  s.version         = version
+  s.homepage        = "https://github.com/DylanVann/react-native-locale-detector"
+  s.summary         = summary
+  s.license         = license
+  s.author          = { "Brent Vatne" => "[email protected]" }
+  s.ios.deployment_target = '7.0'
+  s.tvos.deployment_target = '9.0'
+  s.source          = { :git => "https://github.com/DylanVann.git" }
+  s.source_files    = 'RNI18n/*.{h,m}'
+  s.preserve_paths  = "**/*.js"
+  s.frameworks = 'Foundation'
+
+  # https://github.com/facebook/react-native/issues/29633
+  s.dependency 'React-Core'
+
+end

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant