-
Notifications
You must be signed in to change notification settings - Fork 2
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
Linking the library with a React-Native module #1
Comments
Hi, I wonder you didn't create the module_map file for swift. Please check this: https://github.com/up9cloud/ios-libtdjson#use-it-as-module-ios-swift |
Thank you so much for your reply. Actually i did, and it works well when i use it directly in my react-native application. But when i try to extract it on an npm module that i can easily install, Im stuck. I really dont know what am doing wrong.
|
Well, I guess it's the same thing. after you installed the pod, you need to create the module file and configure it for swift. I don't think "create-react-native-module" will do it for you. |
I meant the |
In my example project, https://github.com/gaithoben/react-native-tdx.git, i have adjusted the .podpecs file so that the library is installed in the projects 'ios/Pods/libtdjson' folder. I guess configuring at the module is whats giving me a headache. |
Your help will be highly appreciated. |
I think there are 2 ways to solve this:
|
Thank you for your reply. Let me test your suggestion and i will keep trying and researching... I have never built a native project in native swift or objective c, i guess thats the reason why i find it difficult. Thanks in advance. |
Thank you so much for the good job of compiling the library making it very easy to use in a project.
I have struggling with an issue the last three days.
I am building react-native module to consume in a react-native project using https://github.com/brodybits/create-react-native-module
Am not sure if am placing the "include" directory in the right place.
am getting the error when i import lbtdjson in a .swift file.
: error: no such module 'libtdjson'
Your help will be highly appreciated.
The text was updated successfully, but these errors were encountered: