Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#1347·cli

autolink doesn't work for libraries which depend on other components with native module

Author: chj-damonCreated Jan 12, 2021Updated Feb 19, 2025
Labelsquestionno-stale-bot

Ask your Question

I build a react-native-library that relies on many other dependencies, like react-native-svg、react-native-image-picker etc. all these dependencies have native modules. library |- react-native-svg |- react-native-image-picker |- rn-fetch-blob |- react-native-reanimated

Now In one project I install my library and run pod install under ios folder, it seems that autolink won't link these native modules from my library dependencies.

what should I do to make it work? I don't want to put all these dependencies in peerDependencies to ask the user to install them manually.

Source: react-native-community/cli

View original on GitHubView discussion on GitHub