Closed dtalbot-goto closed 1 week ago
The error message is indicating that the library is not properly linked (i.e. the native code for ssl pinning is not included in the build)
A couple of questions:
pod install
?Hi, thanks for replying. I am:
Are you able to provide a repo with a minimal reproducible example? Unfortunately I'm not sure where the problem lies with just this information. You can also refer to the example app to see if there are any differences in setup.
I think part of the issue might be that I added the package in package.json and did yarn install. I thought linking would be done automatically. I'm on a big project with lots of dependencies, it will be difficult to reproduce. I already had a look at your example project but I didn't find anything helping my situation yet. I must find a way to link the native manually I think. I'll investigate further and post my findings here.
Linking should generally happen automatically, so it's weird that it didn't happen in your case. Try deleting node_modules
and re-running yarn install
.
You mentioned that you are using this in a project "where turbo modules are not enabled". How exactly is turbo modules turned off?
I'll do as you mention. Turbo modules are disabled at initialization. Though there is a fallback on your lib so this should not impact I think. We'll investigate more on why the linking is not done automatically.
Closing this due to inactivity. Please reopen an issue if you're still facing issues.
I'm working on an app where turbo modules are not enabled. I've been trying to initialize SSL pinning on my App's componentDidMount. In fact, I've been trying at different places:
This error is always thrown:
Looking at this other issue (https://github.com/frw/react-native-ssl-public-key-pinning/issues/329) I believe I'm importing correctly in package.json dependencies. My typescript is at 4.9.5, babel:
Updating them would be difficult... I'm not sure the error is related though. Could it be related to the fact that
NativeModules.SslPublicKeyPinning
is not properly set ?Thanks for your help