Skip to content

v1.9.0

Latest
Compare
Choose a tag to compare
@grabbou grabbou released this 11 Jun 13:11
· 2 commits to master since this release

Since React Native (and therefore rnpm) expects native modules to be linked in as static libraries, it's up to the application to link to the shared libraries that the static library might need (frameworks seem to be automatically handled by the module auto-linking feature). As a native module author, you can provide additional setup instructions or try to automate it yourself, like realm does in their postlink script here.

Thanks to @appden from realm team, this is now getting automated by rnpm so that you can specify an array of shared libraries to link:

"rnpm": {
  "ios": {
    "sharedLibraries": ["libc++", "libxml2", "libz"]
  }
}

It is also fully supported by the unlink part.